-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathoverride.scss
More file actions
136 lines (114 loc) · 2.8 KB
/
override.scss
File metadata and controls
136 lines (114 loc) · 2.8 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
// === Import Bootstrap and set variable overrides ===
$body-bg: {{ if .Param "style.backgroundColor" }}{{ .Param "style.backgroundColor"}}{{ else }}#f8f9fa{{ end }};
$body-color: {{ if .Param "style.fontColor" }}{{ .Param "style.fontColor"}}{{ else }}#212529{{ end }};
$home-image-border-color: {{ if .Param "style.homeImageBorderColor" }}{{ .Param "style.homeImageBorderColor"}}{{ else }}#ffffff{{ end }};
$font-family-base: {{ if .Param "style.fontFamilyBase"}}{{ .Param "style.fontFamilyBase"}},{{end}}"Helvetica Neue", Arial, sans-serif;
$font-size-base: 0.95rem;
$code-color: {{ if .Param "style.codeColor" }}{{ .Param "style.codeColor"}}{{ else }}"inherit"{{ end }};
@import "../../node_modules/bootstrap/scss/bootstrap";
// === Import Font Awesome ===
$fa-font-path: "../webfonts";
@import "../../node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss";
@import "../../node_modules/@fortawesome/fontawesome-free/scss/solid.scss";
@import "../../node_modules/@fortawesome/fontawesome-free/scss/brands.scss";
.fa-1x {
font-size: 0.9em !important;
}
// === Custom Styles ===
#content {
width: 100%;
max-width: 650px;
min-height: calc(100vh - 105px);
}
#home-image {
width: 120px;
height: 120px;
border: solid 5px $home-image-border-color;
box-shadow: 0px 10px 7px -10px rgba(0,0,0,0.6);
border-radius: 0.20rem;
padding: 0px;
object-fit: cover;
object-position: top;
}
#nav-links {
position: relative;
left: -5px;
}
#nav-social {
position: relative;
left: 1px;
}
.category {
color: $body-bg;
background-color: $body-color;
}
.highlight > pre {
padding: 0.5rem 0.8rem;
border: 1px solid;
border-color: #ddd #ddd #ccc;
border-radius: 3px;
}
hr {
border: 0;
height: 1px;
background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(51, 51, 51, 0.3), rgba(51, 51, 51, 0.4),
rgba(51, 51, 51, 0.3), rgba(0, 0, 0, 0));
}
h1, h2 {
letter-spacing: -0.085rem;
font-weight: 700;
}
h3, h4 {
letter-spacing: -0.065rem;
font-weight: 700;
}
p {
margin-bottom: 0.7rem;
}
header {
h2 {
a, a:hover {
color: $body-color;
}
}
}
img {
max-width: 100%;
height: auto;
vertical-align: middle;
border-radius: .2rem;
}
h4 {
margin-top: 2.2rem;
margin-bottom: 0.7rem;
}
a {
text-decoration: underline;
}
blockquote {
background: $body-bg;
border-left: 8px solid #ccc;
margin: 1.5em 10px;
padding: 0.5em 10px;
quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before {
color: #ccc;
content: open-quote;
font-size: 4em;
line-height: 0.1em;
margin-right: 0.25em;
vertical-align: -0.4em;
}
blockquote p {
display: inline;
}
// === Media breakpoints ===
// 576px
@include media-breakpoint-up(sm) {}
// 768px
@include media-breakpoint-up(md) {}
// 992px
@include media-breakpoint-up(lg) {}
// 1200px
@include media-breakpoint-up(xl) {}