Skip to content

Commit 419242f

Browse files
author
Florian Kissling
committed
Nesting, whitespace.
1 parent b4a44cc commit 419242f

4 files changed

Lines changed: 62 additions & 38 deletions

File tree

docs/_sass/_examples.scss

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@
2323
color: white;
2424
position: relative;
2525
padding: 45px 15px 15px;
26-
margin: 0 -15px 15px;
27-
}
26+
margin: 0 -15px 15px;
2827

29-
.s2-event-log:after {
30-
content: "Event Log";
31-
position: absolute;
32-
top: 15px;
33-
left: 15px;
34-
font-size: 12px;
35-
font-weight: bold;
36-
color: #BBB;
37-
text-transform: uppercase;
38-
letter-spacing: 1px;
28+
&:after {
29+
content: "Event Log";
30+
position: absolute;
31+
top: 15px;
32+
left: 15px;
33+
font-size: 12px;
34+
font-weight: bold;
35+
color: #BBB;
36+
text-transform: uppercase;
37+
letter-spacing: 1px;
38+
}
3939
}
4040

4141
.s2-example {
@@ -47,6 +47,18 @@
4747
border-color: #E5E5E5 #EEE #EEE;
4848
border-style: solid;
4949
border-width: 1px 0;
50+
51+
&:after {
52+
content: "Example";
53+
position: absolute;
54+
top: 15px;
55+
left: 15px;
56+
font-size: 12px;
57+
font-weight: bold;
58+
color: #BBB;
59+
text-transform: uppercase;
60+
letter-spacing: 1px;
61+
}
5062
}
5163

5264
@media (min-width: 768px) {
@@ -70,14 +82,4 @@
7082
}
7183
}
7284

73-
.s2-example:after {
74-
content: "Example";
75-
position: absolute;
76-
top: 15px;
77-
left: 15px;
78-
font-size: 12px;
79-
font-weight: bold;
80-
color: #BBB;
81-
text-transform: uppercase;
82-
letter-spacing: 1px;
83-
}
85+

docs/_sass/_footer.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* Footer */
21
.s2-docs-footer {
32
border-top: 1px solid #eee;
43
color: #767676;
@@ -20,9 +19,11 @@
2019
content: "·";
2120
padding-left: 8px;
2221
}
22+
2323
&:first-child {
2424
padding-left: 0;
2525
}
26+
2627
&:last-child:after {
2728
content: "";
2829
padding-left: 0;

docs/_sass/_hamburger.scss

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
1-
/* Animated hamburger icon @see http://codepen.io/JulienMelissas/pen/LEBGLj */
1+
// animated hamburger icon
2+
// @see http://codepen.io/JulienMelissas/pen/LEBGLj
3+
24
.navbar-toggle {
35
border: none;
46
background: transparent !important;
57

68
&:hover {
79
background: transparent !important;
810
}
11+
912
.icon-bar {
1013
width: 22px;
1114
transition: all 0.2s;
1215
}
16+
1317
.top-bar {
1418
transform: rotate(45deg);
1519
transform-origin: 10% 10%;
1620
}
21+
1722
.middle-bar {
1823
opacity: 0;
1924
}
25+
2026
.bottom-bar {
2127
transform: rotate(-45deg);
2228
transform-origin: 10% 90%;
2329
}
24-
&.collapsed .top-bar {
25-
transform: rotate(0);
26-
}
27-
&.collapsed .middle-bar {
28-
opacity: 1;
29-
}
30-
&.collapsed .bottom-bar {
31-
transform: rotate(0);
30+
31+
&.collapsed {
32+
.top-bar {
33+
transform: rotate(0);
34+
}
35+
36+
.middle-bar {
37+
opacity: 1;
38+
}
39+
40+
.bottom-bar {
41+
transform: rotate(0);
42+
}
3243
}
3344
}

docs/_sass/_sidenav.scss

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
.s2-docs-sidebar.affix {
1010
position: static;
1111
}
12+
1213
@media (min-width: 768px) {
1314
.s2-docs-sidebar {
1415
padding-left: 20px;
@@ -33,10 +34,12 @@
3334
border-left: 1px solid transparent;
3435
transition: color .2s, border-color .2s, border-width .2s;
3536
}
37+
3638
> li > a code {
3739
background-color: inherit;
3840
color: inherit;
3941
}
42+
4043
> li > a:hover,
4144
> li > a:focus {
4245
padding-left: 19px;
@@ -45,6 +48,7 @@
4548
background-color: transparent;
4649
border-left-color: #428BCA;
4750
}
51+
4852
> .active > a,
4953
> .active:hover > a,
5054
> .active:focus > a {
@@ -60,17 +64,20 @@
6064
display: none; /* Hide by default, but at >768px, show it */
6165
padding-bottom: 10px;
6266
}
67+
6368
.nav > li > a {
6469
padding-top: 1px;
6570
padding-bottom: 1px;
6671
padding-left: 30px;
6772
font-size: 12px;
6873
font-weight: normal;
6974
}
75+
7076
.nav > li > a:hover,
7177
.nav > li > a:focus {
7278
padding-left: 30px;
7379
}
80+
7481
.nav > .active > a,
7582
.nav > .active:hover > a,
7683
.nav > .active:focus > a {
@@ -90,11 +97,13 @@
9097
font-weight: 500;
9198
color: #999;
9299
}
100+
93101
.back-to-top:hover,
94102
.s2-docs-theme-toggle:hover {
95103
color: #428BCA;
96104
text-decoration: none;
97105
}
106+
98107
.s2-docs-theme-toggle {
99108
margin-top: 0;
100109
}
@@ -139,6 +148,7 @@
139148
margin-bottom: 0;
140149
}
141150
}
151+
142152
@media (min-width: 1200px) {
143153
/* Widen the fixed sidebar again */
144154
.s2-docs-sidebar.affix-bottom,
@@ -147,7 +157,6 @@
147157
}
148158
}
149159

150-
151160
/* Back to top (hidden on mobile) */
152161
.back-to-top {
153162
display: none;
@@ -157,10 +166,11 @@
157166
font-size: 12px;
158167
font-weight: 400;
159168
color: #999;
160-
}
161-
.back-to-top:hover {
162-
color: #428BCA;
163-
text-decoration: none;
169+
170+
&:hover {
171+
color: #428BCA;
172+
text-decoration: none;
173+
}
164174
}
165175

166176
@media (min-width: 768px) {

0 commit comments

Comments
 (0)