forked from ev3dev/ev3dev.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite-structure.scss
More file actions
166 lines (133 loc) · 2.54 KB
/
site-structure.scss
File metadata and controls
166 lines (133 loc) · 2.54 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
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
127
128
129
130
131
132
133
134
135
136
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
---
---
@import "custom-variables";
// Margin on floating elements
.pull-right {
margin-left: 20px;
}
.pull-left {
margin-right: 20px;
}
// Vertical logo positioning and style
#brand-logo {
height: calc(100% + 8px);
margin-top: -4px;
}
.navbar-brand {
padding-top: 18px;
padding-bottom: 18px;
background-color: rgba(0, 0, 0, 0.12) !important;
}
// Cursor on dropdowns
.dropdown-toggle {
cursor: pointer;
}
// Icons in headings
.heading-icon {
margin-right: 8px;
}
// Link icon after nav items
.external-link-nav-icon {
margin-left: 6px;
font-size: smaller;
}
// Alert icons
.alert span.glyphicon,
.panel span.glyphicon,
.btn span.glyphicon {
margin-right: 8px;
}
// Footer spacing
#footer {
margin-top: 40px;
margin-bottom: 50px;
text-align: center;
color: #696969;
}
// Navbar dropdown behavior
@media all and (min-width:$screen-md-min) {
.navbar-nav .dropdown:hover .dropdown-menu {
display: block;
margin-top: 0;
}
}
// Body spacing
body {
padding-top: 40px;
}
@media (max-width: $screen-md-max) {
padding-top: 0;
}
// Panel title size
h2.panel-title {
font-size: 20px;
}
// Half-rounded panel
.rounded-panel {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
// Custom font thickness
.font-light {
font-weight: lighter;
}
// Screenshot formatting
.screenshot {
display: table;
margin: 20px auto;
text-align: center;
}
.screenshot > a > img {
max-height: 480px;
}
.inline-screenshot {
max-width: 350px;
}
.inline-screenshot img {
max-width: 350px;
}
// <sup> formatting
sup[id]:before {
display: inline-block;
}
// Table formatting (stripes)
.table-indexed > tbody th {
background-color: #2f2f2f;
}
.table-indexed > thead > tr,
.table-indexed > tbody > tr:nth-of-type(2n+0) {
background-color: #3d3d3d;
}
.table-indexed > tbody > tr:nth-of-type(2n+1) {
background-color: transparent;
}
// Table-like key-value pair formatting
dd {
margin-bottom: 20px;
}
dd ol, dd ul {
margin-top: 10px;
}
// List formatting
ul + p, ol + p {
margin-top: 10.5px;
}
// Creative Commons license badge
.cclicense {
text-align: center;
color: #696969;
}
// Font size on large buttons
.xl-button-text {
font-size: 22px;
}
// thanks http://stackoverflow.com/a/32490429/1976323
$margins: (xs: 0.5rem, sm: 1rem, md: 1.5rem, lg: 2rem, xl: 2.5rem);
@each $name, $value in $margins {
.margin-top-#{$name} {
margin-top: $value;
}
.margin-bottom-#{$name} {
margin-bottom: $value;
}
}