_content.scss
1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
71
72
73
74
.content {
padding-bottom: $line-height;
.searching & {
display: none;
}
}
.content-fix-scroll {
margin-right: ($grid-gutter * -1);
margin-left: ($grid-gutter * -1);
overflow: hidden;
padding-right: $grid-gutter;
padding-left: $grid-gutter;
.content-fix.fixed & {
position: fixed;
top: ($line-height * 2);
bottom: 0;
@include backface(hidden);
}
}
.content-fix-wrap {
.content-fix.fixed & {
overflow-x: hidden;
overflow-y: auto;
padding-right: ($grid-gutter * 2);
padding-left: ($grid-gutter * 2);
position: absolute;
top: 0;
right: ($grid-gutter * -1);
bottom: 0;
left: ($grid-gutter * -1);
-webkit-overflow-scrolling: touch;
-ms-overflow-style: none;
}
}
.content-heading {
background-color: $brand-color;
color: $white;
overflow: hidden;
padding-top: ($line-height * 2);
position: relative;
z-index: 1;
@include transition(background-color 0.3s $timing, color 0.3s $timing);
@each $color in $palette-list {
$i: index($palette-list, $color);
.page-#{$color} & {
background-color: nth($palette-color, $i);
}
}
.heading {
font-weight: 300;
}
}
.content-sub-heading {
color: $brand-color;
font-size: $font-size-h4;
font-weight: 400;
line-height: $line-height-h4;
@each $color in $palette-list {
$i: index($palette-list, $color);
.page-#{$color} & {
color: nth($palette-color, $i);
}
}
}
.row-fix {
position: relative;
}