Skip to content

Commit ee2218d

Browse files
committed
Update styles for SelectedLicenseCode and LicenseUseCard
Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent 0ea217c commit ee2218d

File tree

2 files changed

+59
-67
lines changed

2 files changed

+59
-67
lines changed

src/components/LicenseUseCard.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,17 @@ export default {
2828
}
2929
</script>
3030

31-
<style>
31+
<style lang="scss">
3232
.tabs span {
3333
font-weight: bold;
3434
}
35+
.license-use-card .tabs .is-active a {
36+
margin-bottom: -2px;
37+
border-bottom: 3px solid #04a434;
38+
span {
39+
font-weight: 700;
40+
opacity:1;
41+
color: black;
42+
}
43+
}
3544
</style>

src/components/SelectedLicenseCode.vue

Lines changed: 49 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default {
141141
height: 26px;
142142
}
143143
#attribution-richtext>p>span,
144-
#attribution-richtext>p>.photo-license-icons{
144+
#attribution-richtext .photo-license-icons{
145145
height: 26px;
146146
vertical-align: middle;
147147
}
@@ -158,83 +158,66 @@ export default {
158158
.license-use-hint span {
159159
vertical-align: middle;
160160
}
161+
.license-code .attribution-tab .tabs span {
162+
font-style: normal;
163+
color: #B0B0B0;
164+
font-size: 16px;
165+
line-height: 24px;
166+
}
167+
.license-code .attribution-tab li:last-of-type {
168+
margin-left: auto;
169+
margin-bottom: -1px;
170+
a {
171+
padding:0;
172+
}
173+
& > a {
174+
padding: 0.5em 1em;
175+
a.copyBtn {
176+
border-bottom: none;
177+
span, .button-text {
178+
color: #333333;
179+
}
180+
}
181+
}
182+
}
183+
161184
.license-code {
162185
margin-top: 0.4rem;
163-
div.attribution-tab {
186+
.attribution-tab {
164187
margin-bottom: 1rem;
165-
nav.tabs {
188+
.tabs {
166189
margin-bottom: 0;
167-
ul {
168-
li {
169-
& > a {
170-
& > span {
171-
font-style: normal;
172-
color: #B0B0B0;
173-
font-size: 16px;
174-
line-height: 24px;
175-
}
176-
}
177-
&:last-of-type{
178-
margin-left: auto;
179-
margin-bottom: -1px;
180-
a {
181-
padding:0;
182-
}
183-
& > a {
184-
padding: 0.3em 1em;
185-
span a.copyBtn {
186-
border-bottom: none;
187-
}
188-
}
189-
}
190-
&.is-active {
191-
a {
192-
border-bottom-width: 3px;
193-
span{
194-
font-weight: 700;
195-
opacity:1;
196-
}
197-
}
198-
}
199-
}
200-
}
201190
}
202-
section.tab-content {
191+
.tab-content {
203192
margin-top:0;
204193
padding: 0;
205-
div.tab-item {
194+
.tab-item {
206195
height: 60px;
207-
div#generated-html-container {
208-
padding-top:10px;
209-
padding-bottom: 10px;
210-
textarea {
211-
word-break: break-all;
212-
-ms-word-break: break-all;
213-
min-height: 60px;
214-
font-family: "Source Sans Pro", "Noto Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
215-
font-size:0.845rem;
216-
}
217-
}
218-
div#generated-richtext-container {
219-
margin-top: 1rem;
220-
display: block;
221-
.attribution-license-icons {
222-
vertical-align: middle;
223-
margin-top: 0;
224-
margin-left: 2px;
225-
}
226-
p {
227-
display: inline
228-
}
229-
}
230196
}
231197
}
232198
}
233199
}
234-
235-
@media only screen and (max-width: 1024px) {
236-
.card {
237-
height: auto!important;
200+
#generated-html-container {
201+
padding-top:10px;
202+
padding-bottom: 10px;
203+
textarea {
204+
word-break: break-all;
205+
-ms-word-break: break-all;
206+
min-height: 60px;
207+
font-family: "Source Sans Pro", "Noto Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
208+
font-size:0.845rem;
209+
}
210+
}
211+
#generated-richtext-container {
212+
margin-top: 1rem;
213+
display: block;
214+
.attribution-license-icons {
215+
vertical-align: middle;
216+
margin-top: 0;
217+
margin-left: 2px;
218+
}
219+
p {
220+
display: inline
238221
}
239222
}
240223
</style>

0 commit comments

Comments
 (0)