-
Notifications
You must be signed in to change notification settings - Fork 138
/
_scaffolding.scss
126 lines (107 loc) · 2.65 KB
/
_scaffolding.scss
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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
//--------------------------------------------------------------
// Scaffolding Library
//--------------------------------------------------------------
//-----------------------------------------
// IE11 Tweak
//-----------------------------------------
.page-template-template-scaffolding .primary {
float: none;
width: 100%;
}
//-----------------------------------------
// Scaffolding defaults
//-----------------------------------------
.scaffolding-document {
margin-bottom: $gutter * 2;
// The section <header>
&-header {
border-bottom: 1px solid $color-border-scaffolding;
display: flex;
justify-content: space-between;
margin-bottom: $gutter;
padding-bottom: $gutter;
// The title.
h2 {
@include margin-padding-reset;
} // h2
// The text.
p {
font-style: italic;
margin-top: rem(12);
} // p
} // .scaffolding-section-header
// The section content <div>
&-content {
display: none;
// Reset.
h4,
p {
margin: $gutter 0;
} // h4, p
// The <pre> container.
pre {
background-color: $color-background-pre;
border: 1px solid $color-border-pre;
color: $color-text-pre;
margin: 0 0 $gutter;
padding: $gutter;
} // pre
// The <code> container.
code {
background-color: $color-background-code;
font-size: rem(13);
padding: rem(5);
} // code
} // &-content
// Always display the global scaffolding.
&.scaffolding-colors,
&.scaffolding-fonts {
.scaffolding-document-content {
display: block;
} // .scaffolding-document-content
} // &.scaffolding-colors, &.scaffolding-fonts
} // .scaffolding-document
//-----------------------------------------
// Color swatch defaults
//-----------------------------------------
.swatch-container {
@include clearfix;
display: flex;
flex-direction: row;
flex-wrap: wrap;
position: relative;
// Each swatch.
.swatch {
border: 1px solid $color-border-scaffolding-swatch;
border-radius: rem(5);
flex: 0 1 23.875%;
height: rem(125);
margin-bottom: $gutter;
margin-right: 1.5%;
position: relative;
text-align: center;
&:nth-child(4n) {
margin-right: 0;
}
// The swatch <header>
& header {
align-content: center;
color: $color-scaffolding;
display: flex;
flex-direction: column;
height: calc(100% - 39px);
justify-content: center;
} // header
// The swatch <footer>
& footer {
@include position(absolute, null null 0 null);
background-color: $color-background-scaffolding;
border-top: 1px solid $color-scaffolding;
border-bottom-left-radius: rem(4);
border-bottom-right-radius: rem(4);
font-size: rem(12);
padding: rem(10);
width: 100%;
} // footer
} // .swatch
} // .swatch-container