jekyll-theme-neysa 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,220 @@
1
+ // Header (navbar) and footer, matching https://ni-chen.github.io
2
+ // Markup: _includes/header.html and _includes/footer.html (Bootstrap 3 class names,
3
+ // so assets/js/bootstrap.min.js can drive the mobile collapse menu).
4
+
5
+ $chrome-font: Optima, Candara, Calibri, Arial, sans-serif;
6
+ $chrome-gradient: linear-gradient(135deg, #5d8f74 0%, #77a88d 100%);
7
+ $chrome-border: #4a7560;
8
+ $chrome-breakpoint: 768px;
9
+
10
+ .sr-only {
11
+ position: absolute;
12
+ width: 1px;
13
+ height: 1px;
14
+ margin: -1px;
15
+ padding: 0;
16
+ overflow: hidden;
17
+ clip: rect(0, 0, 0, 0);
18
+ border: 0;
19
+ }
20
+
21
+ // -----------------------------------------------------------------------------
22
+ // Navbar
23
+ // -----------------------------------------------------------------------------
24
+ .navbar {
25
+ position: relative;
26
+ font-family: $chrome-font;
27
+ line-height: 1.5;
28
+ background: $chrome-gradient;
29
+ border-bottom: 1px solid #e8e8e8;
30
+ opacity: 0.95;
31
+
32
+ > .container-fluid {
33
+ max-width: 1082px;
34
+ margin: 0 auto;
35
+ padding: 10px 15px;
36
+ }
37
+
38
+ > .container-fluid::after,
39
+ .navbar-header::after,
40
+ .navbar-nav::after {
41
+ content: "";
42
+ display: table;
43
+ clear: both;
44
+ }
45
+
46
+ a,
47
+ a:hover,
48
+ a:focus {
49
+ color: #fff;
50
+ text-decoration: none;
51
+ }
52
+
53
+ ul {
54
+ list-style: none;
55
+ margin: 0;
56
+ padding: 0;
57
+ }
58
+ }
59
+
60
+ .navbar-brand {
61
+ float: left;
62
+ height: 80px;
63
+ padding: 10px 15px 14px;
64
+ font-size: 36px;
65
+ line-height: 50px;
66
+ }
67
+
68
+ .navbar-toggle {
69
+ display: none;
70
+ }
71
+
72
+ .navbar .navbar-nav {
73
+ padding-top: 50px;
74
+ }
75
+
76
+ .navbar-nav {
77
+ > li {
78
+ float: left;
79
+ }
80
+
81
+ > li > a {
82
+ display: block;
83
+ padding: 14px 15px;
84
+ font-size: 20px;
85
+ line-height: 22px;
86
+ border-radius: 3px;
87
+
88
+ &:hover,
89
+ &:focus {
90
+ background-color: rgba(0, 0, 0, 0.12);
91
+ }
92
+ }
93
+ }
94
+
95
+ // Bootstrap collapse states
96
+ .collapse {
97
+ display: none;
98
+
99
+ &.in {
100
+ display: block;
101
+ }
102
+ }
103
+
104
+ .collapsing {
105
+ position: relative;
106
+ height: 0;
107
+ overflow: hidden;
108
+ transition: height 0.35s ease;
109
+ }
110
+
111
+ @media (min-width: $chrome-breakpoint) {
112
+ .navbar-header {
113
+ float: left;
114
+ }
115
+
116
+ .navbar-collapse {
117
+ float: right;
118
+ }
119
+
120
+ .navbar-collapse.collapse {
121
+ display: block !important;
122
+ height: auto !important;
123
+ overflow: visible !important;
124
+ }
125
+ }
126
+
127
+ @media (max-width: $chrome-breakpoint - 1px) {
128
+ .navbar-brand {
129
+ height: 60px;
130
+ font-size: 26px;
131
+ line-height: 40px;
132
+ }
133
+
134
+ .navbar-toggle {
135
+ display: block;
136
+ float: right;
137
+ margin: 13px 15px 0 0;
138
+ padding: 9px 10px;
139
+ background: transparent;
140
+ border: 1px solid rgba(255, 255, 255, 0.5);
141
+ border-radius: 4px;
142
+ cursor: pointer;
143
+
144
+ &:hover,
145
+ &:focus {
146
+ background-color: rgba(255, 255, 255, 0.15);
147
+ }
148
+
149
+ .icon-bar {
150
+ display: block;
151
+ width: 22px;
152
+ height: 2px;
153
+ border-radius: 1px;
154
+ background-color: #fff;
155
+ }
156
+
157
+ .icon-bar + .icon-bar {
158
+ margin-top: 4px;
159
+ }
160
+ }
161
+
162
+ // Expanded menu: white panel with dark links, as on the homepage
163
+ .navbar-collapse {
164
+ clear: both;
165
+ background-color: #fff;
166
+ border-radius: 4px;
167
+ }
168
+
169
+ .navbar .navbar-nav {
170
+ padding: 5px 0;
171
+
172
+ > li {
173
+ float: none;
174
+ }
175
+ }
176
+
177
+ .navbar .navbar-nav > li > a {
178
+ padding: 10px 15px;
179
+ font-size: 18px;
180
+ color: #252525;
181
+
182
+ &:hover,
183
+ &:focus {
184
+ background-color: rgba(0, 0, 0, 0.06);
185
+ }
186
+ }
187
+ }
188
+
189
+ // -----------------------------------------------------------------------------
190
+ // Footer
191
+ // -----------------------------------------------------------------------------
192
+ footer {
193
+ margin-top: 2.5rem;
194
+ padding: 18px 15px;
195
+ font-family: $chrome-font;
196
+ font-size: 0.8rem;
197
+ line-height: 1.5;
198
+ color: #fff;
199
+ text-align: center;
200
+ background: $chrome-gradient;
201
+ border-top: 1px solid $chrome-border;
202
+
203
+ a {
204
+ color: #e2f0e8;
205
+ }
206
+
207
+ a:hover,
208
+ a:focus {
209
+ color: #fff;
210
+ text-decoration: underline;
211
+ }
212
+
213
+ &.fixed-bottom {
214
+ position: fixed;
215
+ right: 0;
216
+ bottom: 0;
217
+ left: 0;
218
+ margin: 0;
219
+ }
220
+ }