_custom.scss 4.52 KB
Newer Older
Jamesie Pic's avatar
Jamesie Pic committed
1
2
3
4
5
6
7
$gray-dark:                 #373a3c;
$gray:                      #55595c;
$gray-light:                #818a91;
$gray-lighter:              #eceeef;
$gray-lightest:             #f7f7f9;
//hello

8
$brand-primary:             #487ED6;
Jamesie Pic's avatar
Jamesie Pic committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$brand-secondary:           #085784;
$brand-success:             #92c840;
$brand-info:                #00b8c8;
$brand-warning:             #eb882d;
$brand-danger:              #d74e55;
$brand-inverse:             $gray-dark;


$font-family-sans-serif: "Open Sans", Arial, sans-serif;
// $font-family-serif:      "Pathway Gothic One", Georgia, "Times New Roman", Times, serif;
// $font-family-monospace:  "Ubuntu Mono", "Liberation Mono", "Courier New", monospace;
$font-family-serif:      $font-family-sans-serif;
$font-family-monospace:  $font-family-sans-serif;
$headings-font-family: $font-family-serif;
$headings-font-weight: 400;

Jamesie Pic's avatar
Jamesie Pic committed
25
$font-size-base: 1.2rem;
Jamesie Pic's avatar
Jamesie Pic committed
26
27
28
29
30
31
$font-size-lg:   1.67rem;
$font-size-sm:   1.1rem;
$font-size-xs:   0.8rem;

$line-height-base: 1.7;

32
33
34
$font-size-h1: 3rem;
$font-size-h2: 2.25rem;
$font-size-h3: 1.75rem;
35
36
37
$font-size-h4: 1.25rem;
$font-size-h5: 1.25rem;
$font-size-h6: 1rem;
Jamesie Pic's avatar
Jamesie Pic committed
38
39
$headings-color: $brand-primary;

40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
nav.nav{
    margin-top: 1em;
}

div.row article div p img{
    max-width:100%;
}
.blue{
    color: #487ED6;
}
.row.layout {
    display: table;
}

aside.sidebar {
    float: none;
    display: table-cell;
    vertical-align: top;
    background: #333333;
    color: #dbdbdb;
    text-align: center;
    width: 25%;
    position: fixed;
    height: 100%;
}

.content{
    width:75%;
    position: absolute;
    left:25%;
    overflow: hidden;
Jamesie Pic's avatar
Jamesie Pic committed
71
    padding: 0 4rem;
72
73
74
75
76
77
78
79
80
81
82
83
84
85
}

aside{
    position: fixed;
}

aside a{
    color: #dbdbdb;
}

aside a h3{
    color: #dbdbdb;
}

86
87
88
89
90
91
92
93
94
95
96
h1 {
    padding-top: 2rem;
}

h2 {
    padding-top: 1rem;
}

h3 {
    padding-top: 1rem;
}
Jamesie Pic's avatar
Jamesie Pic committed
97
98
99
img#logo {
    margin: 3rem 0;
}
100

Jamesie Pic's avatar
Jamesie Pic committed
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
@import '_fonts.scss';

/*
@import '_footer_sticky.scss';
@import '_header.scss';
nav {
  font-family: $headings-font-family;
  font-size: 2.25rem;
  padding-bottom: 1.25rem;
}

h1, h2, h3, h4 {
  text-transform: uppercase;
}

html,
body {
  height: 100%;
}
body {
  background: url(/theme/img/index.jpg) no-repeat center center fixed;
  background-size: cover;
}

body div.background-layer {
  background-color: rgba(255, 255, 255, 0.95);
  min-height: 100%;
}

.article-infos p, .article-infos address {
  display: inline-block;
  margin-bottom: 0;
}

.article-infos {
  margin-bottom: 0.67rem;
}

*/


Jamesie Pic's avatar
Jamesie Pic committed
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
/* home */
#votes-chart-container {
    width: 50%;
    height: 450px;
}
img {
    max-width: 100%;
}
.table {
    display: table;
}
.cell {
    display: table-cell;
    vertical-align: top;
    padding: 1rem;
}

blockquote {
    background: #f9f9f9;
    border-left: 10px solid #ccc;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before {
    color: #ccc;
    content: open-quote;
    font-size: 4em;
    line-height: 0.1em;
    margin-right: 0.25em;
    vertical-align: -0.4em;
}
blockquote p {
    display: inline;
}
.quote-author {
    font-style: italic;
}

body.home .content {
    h1, h2, h3, h4, h5 {
        text-align: center;
        padding: 5rem 0;
    }

    .table {
        margin: 8rem 0;
    }

    .cover, .banner {
        background-repeat: no-repeat;
        background-position: center center;
        margin: 3rem -4em;
    }

    .cover {
        background-attachment: fixed;
        background-size: cover;
    }

    .banner {
        background-size: 100% auto;
    }

    .scores {
        background-image: url(/images/scores.png);
    }

    .question {
        background-image: url(/images/question-banner.jpg);
    }

    .gears {
        background-image: url(/images/gears.png);
    }

    .banner-en {
        background-image: url(/images/banner-en.png);
        background-size: 100%;
    }

    .title {
        font-size: $font-size-h1;
        padding: 4rem 4em;
    }

    .cover .title, .banner .title {
        text-align: center;
        color: white;
        background-color: rgba(0, 0, 0, .7);
    }
}
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270

@media screen and (max-width: 768px){
    aside.sidebar {
        float: none;
        width: 100%;
        height: 33%;
        position: absolute;
    }

    img{
        position: relative;
        max-width: 140px;
    }

    .content{
        top: 33%;
        max-width:100%;
        padding: 0 4rem;
        text-align: center;
        left: 0;
        width:100%;
    }

    aside{
        text-align: center;
    }

    nav.nav{
        margin-top: 0;
        padding: 20px;
        display: row;
    }

    img#logo {
        margin: 0;
    }
}