_layout.scss 5.45 KB
Newer Older
1
2
3
4
5
/**
 * Site header
 */
.site-header {
  min-height: $spacing-unit * 1.865;
Yohan Jarosz's avatar
Yohan Jarosz committed
6
  height: $banner-height;
7
8
  // Positioning context for the mobile navigation icon
  position: relative;
Jacek Lebioda's avatar
Jacek Lebioda committed
9
  margin-top: 30px;
10
11
}

Yohan Jarosz's avatar
Yohan Jarosz committed
12
13
14
15
16
17

.content-wrapper {
  flex: 1 0 auto;
}


Yohan Jarosz's avatar
Yohan Jarosz committed
18
19
20
21
/**
* SVG BANNER
*/

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.site-title {
  @include relative-font-size(1.625);
  font-weight: 300;
  line-height: $base-line-height * $base-font-size * 2.25;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;

  &,
  &:visited {
    color: $grey-color-dark;
  }
}

.site-nav {
Jacek Lebioda's avatar
Jacek Lebioda committed
37
  margin-top: 10px;
38
39
40
  float: right;
  line-height: $base-line-height * $base-font-size * 2.25;

Jacek Lebioda's avatar
Jacek Lebioda committed
41
42
43
44
  .page-tabs {
    padding-right: 50px;
  }

45
46
47
48
49
50
51
52
  .nav-trigger {
      display: none;
  }

  .menu-icon {
    display: none;
  }

53
  .page-link:hover {
Jacek Lebioda's avatar
Jacek Lebioda committed
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
    text-decoration: none;
  }

  .page-link:hover:after {
    // border-bottom: solid 3px #26a9df;
    border-color: #58595B;
  }

  .page-link:after {
    content: " ";
    width: 22px;
    border-bottom: solid 3px #cbcfda;
    position: absolute;
    top: 30px;
    left: 18px;
    float: left;
Jacek Lebioda's avatar
Jacek Lebioda committed
70
71
72
73
  }

  @media (min-width: 640px) {
    .page-link:hover {
Jacek Lebioda's avatar
Jacek Lebioda committed
74
75
76
77
        // border: solid 1px #555;
        // border-top: none;
        // border-right: solid 1px;

Jacek Lebioda's avatar
Jacek Lebioda committed
78
79
        // text-decoration: none;
        // box-shadow: #0000001f 0px 5px 10px 0px;
Jacek Lebioda's avatar
Jacek Lebioda committed
80

Jacek Lebioda's avatar
Jacek Lebioda committed
81
82
        // z-index: 100;
        // margin-right: 0px;
Jacek Lebioda's avatar
Jacek Lebioda committed
83

Jacek Lebioda's avatar
Jacek Lebioda committed
84
85
      color: #222 !important;

Jacek Lebioda's avatar
Jacek Lebioda committed
86
        &:not(.active) {
Jacek Lebioda's avatar
Jacek Lebioda committed
87
          // padding-top: 20px;
Jacek Lebioda's avatar
Jacek Lebioda committed
88
89
90
91
92
93
94
95
96
        }
    }

    .page-link {
      min-width: 60px;
      position: relative;

      margin: 0 0 0 -1px;
      padding: 2px 10px 4px 9px;
Jacek Lebioda's avatar
Jacek Lebioda committed
97

Jacek Lebioda's avatar
Jacek Lebioda committed
98
99
//      color: #0bc5ff;

Jacek Lebioda's avatar
Jacek Lebioda committed
100
101
102
103
104
105
106
107
108
109
      float: left;

      -moz-transition: padding 0.8s ease;
      -webkit-transition: padding 0.8s ease;
      -o-transition: padding 0.8s ease;
      transition: padding 0.8s ease;

      z-index: 8;
    }

Jacek Lebioda's avatar
Jacek Lebioda committed
110
    .active:after {
Jacek Lebioda's avatar
Jacek Lebioda committed
111
      // padding-top: 20px;
Jacek Lebioda's avatar
Jacek Lebioda committed
112
      border-color: #58595B;
Jacek Lebioda's avatar
Jacek Lebioda committed
113
    }
Jacek Lebioda's avatar
Jacek Lebioda committed
114
115
  }

116
  .page-link {
Jacek Lebioda's avatar
Jacek Lebioda committed
117
    // color: $text-color;
118
    line-height: $base-line-height;
Jacek Lebioda's avatar
Jacek Lebioda committed
119
    font-weight: 600;
120
    text-align: center;
121
122
123

    // Gaps between nav items, but not on the last one
    &:not(:last-child) {
124
      // margin-right: -6px;
125
126
127
    }
  }

Jacek Lebioda's avatar
Jacek Lebioda committed
128
  .active {
Jacek Lebioda's avatar
Jacek Lebioda committed
129
    // border-top: solid 4px #333;
Jacek Lebioda's avatar
Jacek Lebioda committed
130
131
  }

Jacek Lebioda's avatar
Jacek Lebioda committed
132

133
134
135
  @include media-query($on-palm) {
    position: absolute;
    top: 9px;
Jacek Lebioda's avatar
Jacek Lebioda committed
136
    right: $spacing-unit / 2;
137
138
139
140
141
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
    background-color: $background-color;
    border: 1px solid $grey-color-light;
    border-radius: 5px;
    text-align: right;

    label[for="nav-trigger"] {
      display: block;
      float: right;
      width: 36px;
      height: 36px;
      z-index: 2;
      cursor: pointer;
    }

    .menu-icon {
      display: block;
      float: right;
      width: 36px;
      height: 26px;
      line-height: 0;
      padding-top: 10px;
      text-align: center;

      > svg path {
        fill: $grey-color-dark;
      }
    }

    input ~ .trigger {
      clear: both;
      display: none;
    }

    input:checked ~ .trigger {
      display: block;
      padding-bottom: 5px;
    }

    .page-link {
      display: block;
      padding: 5px 10px;

      &:not(:last-child) {
        margin-right: 0;
      }
      margin-left: 20px;
    }
  }
}



/**
 * Site footer
 */
.site-footer {
  padding: $spacing-unit 0;
Yohan Jarosz's avatar
Yohan Jarosz committed
194
195
196
197
198
  bottom: 0;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
Yohan Jarosz's avatar
Yohan Jarosz committed
199
  margin-top: -$footer-height + $spacing-unit;
Yohan Jarosz's avatar
Yohan Jarosz committed
200
  flex-shrink: 0;
Yohan Jarosz's avatar
Yohan Jarosz committed
201
202
  height: $footer-height;
  line-height: 15px
203
204
}

Yohan Jarosz's avatar
footer    
Yohan Jarosz committed
205
206
207
208
209
210
.footer-wrapper {
  width: 100%;
  padding: $spacing-unit 0;
  border-top: 1px solid $grey-color-light;
}

211
212
213
214
215
216
217
218
219
220
221
.footer-heading {
  @include relative-font-size(1.125);
  margin-bottom: $spacing-unit / 2;
}

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0;
}

Yohan Jarosz's avatar
Yohan Jarosz committed
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
.social-media-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-align: center;

  li {
    display: inline;
    a {
      text-decoration: none;
      padding: .2em 1em;
    }
  }
}

Yohan Jarosz's avatar
footer    
Yohan Jarosz committed
237
238
.footer-cp {
  @include relative-font-size(0.8);
239
240
241
  color: $grey-color;
  margin-left: -$spacing-unit / 2;
  @extend %clearfix;
Yohan Jarosz's avatar
footer    
Yohan Jarosz committed
242
243
  position: relative;
  text-align: center;
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
}


@include media-query($on-palm) {
  .footer-col {
    float: none;
    width: -webkit-calc(100% - (#{$spacing-unit} / 2));
    width:         calc(100% - (#{$spacing-unit} / 2));
  }
}



/**
 * Page content
 */
.page-content {
261
  margin-top: 30px;
Jacek Lebioda's avatar
Jacek Lebioda committed
262
  margin-left: 5%;
Yohan Jarosz's avatar
Yohan Jarosz committed
263
  @include media-query($on-palm) {
Yohan Jarosz's avatar
fix #7    
Yohan Jarosz committed
264
    margin-top: -40px;
Jacek Lebioda's avatar
Jacek Lebioda committed
265
    margin-left: 1%;
Yohan Jarosz's avatar
Yohan Jarosz committed
266
  }
267
  padding: $spacing-unit 0;
Yohan Jarosz's avatar
Yohan Jarosz committed
268
  padding-bottom: $footer-height;
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
}

.page-heading {
  @include relative-font-size(2);
}

.post-list-heading {
  @include relative-font-size(1.75);
}

.post-list {
  margin-left: 0;
  list-style: none;

  > li {
    margin-bottom: $spacing-unit;
  }
}

.post-meta {
  font-size: $small-font-size;
  color: $grey-color;
}

.post-link {
  display: block;
  @include relative-font-size(1.5);
}



/**
 * Posts
 */
.post-header {
  margin-bottom: $spacing-unit;
}

.post-title {
  @include relative-font-size(2.625);
  letter-spacing: -1px;
  line-height: 1;

  @include media-query($on-laptop) {
    @include relative-font-size(2.25);
  }
}

.post-content {
  margin-bottom: $spacing-unit;

  h2 {
    @include relative-font-size(2);

    @include media-query($on-laptop) {
      @include relative-font-size(1.75);
    }
  }

  h3 {
    @include relative-font-size(1.625);

    @include media-query($on-laptop) {
      @include relative-font-size(1.375);
    }
  }

  h4 {
    @include relative-font-size(1.25);

    @include media-query($on-laptop) {
      @include relative-font-size(1.125);
    }
  }
}