Skip to content

Commit 1598e95

Browse files
committed
Extract Vocabulary styles
Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent 94d5cce commit 1598e95

File tree

4 files changed

+113
-113
lines changed

4 files changed

+113
-113
lines changed

src/App.vue

-109
Original file line numberDiff line numberDiff line change
@@ -128,88 +128,9 @@ export default {
128128
.desktop-hide {
129129
display: none;
130130
}
131-
132131
.desktop-show {
133132
display: block;
134133
}
135-
.vocab.ha {
136-
font-family: Roboto Condensed,sans-serif;
137-
font-weight: bold;
138-
font-style: normal;
139-
letter-spacing: 0.02em;
140-
padding-bottom: 0.5rem;
141-
}
142-
.vocab.hb {
143-
font-family: Source Sans Pro,sans-serif;
144-
font-weight: bold;
145-
font-style: normal;
146-
padding-bottom: 0.5rem;
147-
}
148-
.vocab.h2a {
149-
color: black;
150-
font-size: 36px;
151-
line-height: 47px;
152-
}
153-
.vocab.h3a {
154-
font-size: 28px;
155-
line-height: 36px;
156-
color: black;
157-
}
158-
.vocab.h3b {
159-
font-size: 28px;
160-
line-height: 33px;
161-
}
162-
.vocab.h4a {
163-
font-size: 23px;
164-
line-height: 30px;
165-
}
166-
.vocab.h4b {
167-
font-size: 23px;
168-
line-height: 27px;
169-
}
170-
.vocab.h5a {
171-
font-size: 20px;
172-
line-height: 30px;
173-
}
174-
.vocab.h5b {
175-
font-size: 20px;
176-
line-height: 26px;
177-
}
178-
.vocab-tomato {
179-
color: #ED592F!important;
180-
}
181-
.vocab-body {
182-
font-style: normal;
183-
font-weight: normal;
184-
color: #333333;
185-
padding-bottom: 8px;
186-
}
187-
.vocab-body.body-bigger {
188-
font-size: 23px;
189-
line-height: 33px;
190-
color: black;
191-
}
192-
.vocab-body.body-big {
193-
font-size: 18px;
194-
line-height: 25px;
195-
}
196-
.vocab-body.body-normal {
197-
font-size: 16px;
198-
line-height: 24px;
199-
}
200-
.vocab-caption {
201-
font-style: normal;
202-
font-weight: 600;
203-
font-size: 13px;
204-
line-height: 19px;
205-
padding-bottom: 8px;
206-
}
207-
.normal-gray {
208-
color: #D8D8D8!important;
209-
}
210-
.slate-gray {
211-
color: #333333;
212-
}
213134
.selected-license-card {
214135
margin-bottom: 32px;
215136
}
@@ -248,42 +169,12 @@ export default {
248169
order: 1;
249170
}
250171
}
251-
252172
@media only screen and (max-width: 670px) {
253173
#site-container {
254174
margin-left: 3%;
255175
margin-right: 3%;
256176
}
257177
}
258-
259-
.vocab-container .vocab-grid .panel {
260-
height: 100%;
261-
display: -webkit-box;
262-
display: -ms-flexbox;
263-
display: flex;
264-
-webkit-box-orient: vertical;
265-
-webkit-box-direction: normal;
266-
-ms-flex-direction: column;
267-
flex-direction: column;
268-
-webkit-box-pack: justify;
269-
-ms-flex-pack: justify;
270-
justify-content: space-between;
271-
}
272-
273-
.vocab.select-field.normal-sized {
274-
font-size: 1rem;
275-
}
276-
277-
.vocab.select-field > .field.has-addons {
278-
padding-left: calc(1em + var(--select-field-addons-space));
279-
margin-bottom: 0;
280-
min-width: 10em;
281-
}
282-
283-
.vocab.select-field > .field > option[disabled] {
284-
opacity: 0.6;
285-
}
286-
287178
.panel {
288179
margin-top: 1rem;
289180
}

src/assets/css/vocab.css

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
/* Vocabulary Header styles */
2+
.vocab.ha {
3+
font-family: Roboto Condensed,sans-serif;
4+
font-weight: bold;
5+
font-style: normal;
6+
letter-spacing: 0.02em;
7+
padding-bottom: 0.5rem;
8+
}
9+
.vocab.hb {
10+
font-family: Source Sans Pro,sans-serif;
11+
font-weight: bold;
12+
font-style: normal;
13+
padding-bottom: 0.5rem;
14+
}
15+
.vocab.h2a {
16+
color: black;
17+
font-size: 36px;
18+
line-height: 47px;
19+
}
20+
.vocab.h3a {
21+
font-size: 28px;
22+
line-height: 36px;
23+
color: black;
24+
}
25+
.vocab.h3b {
26+
font-size: 28px;
27+
line-height: 33px;
28+
}
29+
.vocab.h4a {
30+
font-size: 23px;
31+
line-height: 30px;
32+
}
33+
.vocab.h4b {
34+
font-size: 23px;
35+
line-height: 27px;
36+
}
37+
.vocab.h5a {
38+
font-size: 20px;
39+
line-height: 30px;
40+
}
41+
.vocab.h5b {
42+
font-size: 20px;
43+
line-height: 26px;
44+
}
45+
/* Vocabulary Text styles */
46+
.vocab-body {
47+
font-style: normal;
48+
font-weight: normal;
49+
color: #333333;
50+
padding-bottom: 8px;
51+
}
52+
.vocab-body.body-bigger {
53+
font-size: 23px;
54+
line-height: 33px;
55+
color: black;
56+
}
57+
.vocab-body.body-big {
58+
font-size: 18px;
59+
line-height: 25px;
60+
}
61+
.vocab-body.body-normal {
62+
font-size: 16px;
63+
line-height: 24px;
64+
}
65+
.vocab-caption {
66+
font-style: normal;
67+
font-weight: 600;
68+
font-size: 13px;
69+
line-height: 19px;
70+
padding-bottom: 8px;
71+
}
72+
/* Vocabulary colors */
73+
.normal-gray {
74+
color: #D8D8D8!important;
75+
}
76+
.slate-gray {
77+
color: #333333;
78+
}
79+
.vocab-tomato {
80+
color: #ED592F!important;
81+
}
82+
/* Vocabulary other styles */
83+
.vocab-container .vocab-grid .panel {
84+
height: 100%;
85+
display: -webkit-box;
86+
display: -ms-flexbox;
87+
display: flex;
88+
-webkit-box-orient: vertical;
89+
-webkit-box-direction: normal;
90+
-ms-flex-direction: column;
91+
flex-direction: column;
92+
-webkit-box-pack: justify;
93+
-ms-flex-pack: justify;
94+
justify-content: space-between;
95+
}
96+
97+
.vocab.select-field.normal-sized {
98+
font-size: 1rem;
99+
}
100+
101+
.vocab.select-field > .field.has-addons {
102+
padding-left: calc(1em + var(--select-field-addons-space));
103+
margin-bottom: 0;
104+
min-width: 10em;
105+
}
106+
107+
.vocab.select-field > .field > option[disabled] {
108+
opacity: 0.6;
109+
}
110+
.vocab.license-icons img {
111+
width: 35px;
112+
}

src/components/HelpSection.vue

-4
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,4 @@ export default {
387387
margin: 0;
388388
}
389389
390-
.vocab.license-icons img {
391-
width: 35px;
392-
}
393-
394390
</style>

src/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import i18n from './i18n'
55
import VueAnalytics from 'vue-analytics'
66
import App from './App.vue'
77
import store from './store'
8+
import './assets/css/vocab.css'
89

910
import * as Sentry from '@sentry/browser'
1011
import * as Integrations from '@sentry/integrations'

0 commit comments

Comments
 (0)