Skip to content

Commit 6772681

Browse files
committed
use styles in scss
1 parent d6ed6b4 commit 6772681

File tree

3 files changed

+178
-179
lines changed

3 files changed

+178
-179
lines changed

assets/sass/styles.scss

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,181 @@
22
/* font-size: $custom-font-size; */
33
/* } */
44

5+
body {
6+
font-size: .875rem;
7+
}
8+
9+
.feather {
10+
width: 16px;
11+
height: 16px;
12+
vertical-align: text-bottom;
13+
}
14+
15+
/*
16+
* Sidebar
17+
*/
18+
19+
.sidebar {
20+
position: fixed;
21+
top: 0;
22+
bottom: 0;
23+
left: 0;
24+
z-index: 100; /* Behind the navbar */
25+
padding: 48px 0 0; /* Height of navbar */
26+
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
27+
}
28+
29+
.sidebar-sticky {
30+
position: relative;
31+
top: 0;
32+
height: calc(100vh - 48px);
33+
padding-top: .5rem;
34+
overflow-x: hidden;
35+
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
36+
}
37+
38+
@supports ((position: -webkit-sticky) or (position: sticky)) {
39+
.sidebar-sticky {
40+
position: -webkit-sticky;
41+
position: sticky;
42+
}
43+
}
44+
45+
.sidebar .nav-link {
46+
font-weight: 500;
47+
color: #333;
48+
}
49+
50+
.sidebar .nav-link .feather {
51+
margin-right: 4px;
52+
color: #999;
53+
}
54+
55+
.sidebar .nav-link.active {
56+
color: #007bff;
57+
}
58+
59+
.sidebar .nav-link:hover .feather,
60+
.sidebar .nav-link.active .feather {
61+
color: inherit;
62+
}
63+
64+
.sidebar-heading {
65+
font-size: .75rem;
66+
text-transform: uppercase;
67+
}
68+
69+
/*
70+
* Content
71+
*/
72+
73+
[role="main"] {
74+
padding-top: 48px; /* Space for fixed navbar */
75+
}
76+
77+
/*
78+
* Navbar
79+
*/
80+
81+
.navbar-brand {
82+
padding-top: .75rem;
83+
padding-bottom: .75rem;
84+
font-size: 1rem;
85+
background-color: rgba(0, 0, 0, .25);
86+
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
87+
}
88+
89+
.navbar .form-control {
90+
padding: .75rem 1rem;
91+
border-width: 0;
92+
border-radius: 0;
93+
}
94+
95+
.form-control-dark {
96+
color: #fff;
97+
background-color: rgba(255, 255, 255, .1);
98+
border-color: rgba(255, 255, 255, .1);
99+
}
100+
101+
.form-control-dark:focus {
102+
border-color: transparent;
103+
box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
104+
}
105+
106+
/*
107+
* Author box
108+
*/
109+
.author-footer {
110+
border-top: 1px solid #eee;
111+
margin: 2em auto;
112+
padding-top: 2em;
113+
114+
img {
115+
border: 1px solid #eee;
116+
padding: 2px;
117+
}
118+
}
119+
120+
121+
122+
/*
123+
* Highlighting fence code
124+
*/
125+
.highlight pre {
126+
padding: 15px
127+
}
128+
129+
.homepage_branding {
130+
border-top: 1px solid #eee;
131+
border-bottom: 1px solid #eee;
132+
margin: 2em auto;
133+
padding-top: 2em;
134+
font-size: large;
135+
136+
}
137+
138+
139+
/*
140+
* Footer
141+
*/
142+
.site-footer {
143+
background-color: #fbfbf7;
144+
border-top: 1px solid #e4e4e4;
145+
margin-top: 5em;
146+
147+
.footer-nav {
148+
list-style-type: none;
149+
}
150+
}
151+
152+
153+
.site-footer .footer-nav li .fa {
154+
padding-right: 5px;
155+
}
156+
157+
158+
/*
159+
* Shell console
160+
*/
161+
.shell {
162+
163+
background-color: #101112; //$kbd-bg;
164+
padding: 0.5rem 1rem;
165+
border-radius: 0.2rem;
166+
box-shadow: inset 0 -0.1rem 0 rgba(0, 0, 0, 0.25);
167+
color: #fff; //$kbd-color;
168+
169+
.shell-prompt {
170+
color: #0c0;
171+
font-weight: bold;
172+
}
173+
174+
.shell-comment {
175+
color: grey;
176+
}
177+
178+
.shell kbd {
179+
box-shadow: none;
180+
font-weight: bold;
181+
}
182+
}

static/.gitkeep

Whitespace-only changes.

static/css/main.css

Lines changed: 0 additions & 179 deletions
This file was deleted.

0 commit comments

Comments
 (0)