ockham 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,87 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight, .highlight .w {
4
+ color: #282828;
5
+ background-color: #fbf1c7;
6
+ }
7
+ .highlight .err {
8
+ color: #9d0006;
9
+ background-color: #fbf1c7;
10
+ font-weight: bold;
11
+ }
12
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
13
+ color: #928374;
14
+ font-style: italic;
15
+ }
16
+ .highlight .cp {
17
+ color: #427b58;
18
+ }
19
+ .highlight .nt {
20
+ color: #9d0006;
21
+ }
22
+ .highlight .o, .highlight .ow {
23
+ color: #282828;
24
+ }
25
+ .highlight .p, .highlight .pi {
26
+ color: #282828;
27
+ }
28
+ .highlight .gi {
29
+ color: #79740e;
30
+ background-color: #fbf1c7;
31
+ }
32
+ .highlight .gd {
33
+ color: #9d0006;
34
+ background-color: #fbf1c7;
35
+ }
36
+ .highlight .gh {
37
+ color: #79740e;
38
+ font-weight: bold;
39
+ }
40
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
41
+ color: #9d0006;
42
+ }
43
+ .highlight .kc {
44
+ color: #8f3f71;
45
+ }
46
+ .highlight .kt {
47
+ color: #b57614;
48
+ }
49
+ .highlight .kd {
50
+ color: #af3a03;
51
+ }
52
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
53
+ color: #79740e;
54
+ font-style: italic;
55
+ }
56
+ .highlight .si {
57
+ color: #79740e;
58
+ font-style: italic;
59
+ }
60
+ .highlight .sr {
61
+ color: #79740e;
62
+ font-style: italic;
63
+ }
64
+ .highlight .sa {
65
+ color: #9d0006;
66
+ }
67
+ .highlight .se {
68
+ color: #af3a03;
69
+ }
70
+ .highlight .nn {
71
+ color: #427b58;
72
+ }
73
+ .highlight .nc {
74
+ color: #427b58;
75
+ }
76
+ .highlight .no {
77
+ color: #8f3f71;
78
+ }
79
+ .highlight .na {
80
+ color: #79740e;
81
+ }
82
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
83
+ color: #8f3f71;
84
+ }
85
+ .highlight .ss {
86
+ color: #076678;
87
+ }
@@ -0,0 +1,209 @@
1
+ .wrap {
2
+ position: relative;
3
+ width: 100%;
4
+ }
5
+
6
+ .container {
7
+ max-width: 45rem;
8
+ padding: 0 var(--spacer);
9
+ margin: 0 auto;
10
+ }
11
+
12
+ .masthead {
13
+ margin-top: var(--spacer);
14
+ margin-bottom: var(--spacer-3);
15
+ }
16
+
17
+ .masthead-title {
18
+ a {
19
+ color: inherit;
20
+ text-decoration: none;
21
+ }
22
+
23
+ small {
24
+ opacity: .5;
25
+ }
26
+ }
27
+
28
+ @media (max-width: $md-screen) {
29
+ .masthead-title {
30
+ text-align: center;
31
+ }
32
+ .masthead-title small {
33
+ display: none;
34
+ }
35
+ }
36
+
37
+ .footer {
38
+ margin-top: var(--spacer-3);
39
+ margin-bottom: var(--spacer);
40
+ }
41
+
42
+ .page, .post {
43
+ h1, h2, h3, h4, h5, h6 {
44
+ font-family: var(--heading-font);
45
+ }
46
+ }
47
+
48
+ .post-entry {
49
+ margin-bottom: var(--spacer-2);
50
+
51
+ .post-title {
52
+ margin-top: 0;
53
+ margin-bottom: var(--spacer);
54
+ }
55
+ }
56
+
57
+ .post {
58
+ .post-title {
59
+ margin-bottom: 0;
60
+ }
61
+ }
62
+
63
+ .post-meta {
64
+ opacity: .5;
65
+ font-size: .8em;
66
+ }
67
+
68
+ .highlight {
69
+ border-radius: var(--border-radius);
70
+ background-color: var(--code-bg);
71
+ }
72
+
73
+ .rouge-table {
74
+ border: 0;
75
+
76
+ td,
77
+ th {
78
+ border: 0;
79
+ padding: 0;
80
+ }
81
+
82
+ pre {
83
+ padding: 0;
84
+ margin: 0;
85
+ }
86
+
87
+ .gutter {
88
+ user-select: none;
89
+ opacity: .5;
90
+ padding-right: 1em;
91
+ }
92
+ }
93
+
94
+ #markdown-toc {
95
+ font-size: .8em;
96
+ padding: 2em 3em;
97
+ margin: 2em 0;
98
+ border: solid var(--border-color);
99
+ border-width: 1px 0;
100
+
101
+ &::before {
102
+ display: block;
103
+ margin-left: -3em;
104
+ content: "TOC";
105
+ }
106
+ }
107
+
108
+ .pagination,
109
+ .post-pagination {
110
+ display: flex;
111
+ margin: var(--spacer-3) 0;
112
+ }
113
+
114
+ .pagination-item,
115
+ .post-pagination-item {
116
+ width: 100%;
117
+ padding: var(--spacer);
118
+ border: 1px solid var(--border-color);
119
+
120
+ &.older {
121
+ border-top-left-radius: var(--border-radius);
122
+ border-bottom-left-radius: var(--border-radius);
123
+ }
124
+
125
+ &.newer {
126
+ border-bottom-right-radius: var(--border-radius);
127
+ border-top-right-radius: var(--border-radius);
128
+ }
129
+ }
130
+
131
+ .pagination-item {
132
+ text-align: center;
133
+ }
134
+
135
+ .post-pagination-item {
136
+ &.older {
137
+ text-align: left;
138
+ }
139
+
140
+ &.newer {
141
+ text-align: right;
142
+ }
143
+ }
144
+
145
+ a.pagination-item,
146
+ a.post-pagination-item {
147
+ text-decoration: none;
148
+ color: inherit;
149
+
150
+ &:hover,
151
+ &:focus {
152
+ background-color: var(--border-color);
153
+ }
154
+ }
155
+
156
+ span.pagination-item,
157
+ span.post-pagination-item {
158
+ opacity: .5;
159
+ }
160
+
161
+ @media (max-width: $md-screen) {
162
+ .post-pagination-item {
163
+ &.older,
164
+ &.newer {
165
+ text-align: center;
166
+ }
167
+ }
168
+
169
+ .post-pagination-title {
170
+ display: none;
171
+ }
172
+ }
173
+
174
+ .taxonomies {
175
+ list-style: none;
176
+ display: grid;
177
+ grid-column-gap: var(--spacer-2);
178
+ grid-template-columns: repeat(2, 1fr);
179
+ margin: 0;
180
+ padding: 0;
181
+ font-weight: bold;
182
+
183
+ .taxonomy {
184
+ display: flex;
185
+ padding: 0.25em 0;
186
+ justify-content: space-between;
187
+ margin-bottom: var(--spacer);
188
+ border-bottom: 1px solid var(--border-color);
189
+ color: var(--body-color);
190
+
191
+ &:focus,
192
+ &:hover {
193
+ color: var(--link-color);
194
+ text-decoration: none;
195
+ }
196
+ }
197
+ }
198
+
199
+ .post-list-by-taxonomy {
200
+ time {
201
+ font-family: monospace;
202
+ }
203
+ }
204
+
205
+ @media (min-width: $sm-screen) {
206
+ .taxonomies {
207
+ grid-template-columns: repeat(3, 1fr);
208
+ }
209
+ }
@@ -0,0 +1,112 @@
1
+ .sidebar {
2
+ position: fixed;
3
+ top: 0;
4
+ bottom: 0;
5
+ width: var(--sidebar-width);
6
+ left: calc(0px - var(--sidebar-width));
7
+ visibility: hidden;
8
+ overflow-y: auto;
9
+ font-family: "PT Sans", Helvetica, Arial, sans-serif;
10
+ color: var(--sidebar-color);
11
+ background-color: var(--sidebar-bg);
12
+ -webkit-transition: all .3s ease-in-out;
13
+ transition: all .3s ease-in-out;
14
+ }
15
+ @media (max-width: $md-screen) {
16
+ .sidebar {
17
+ font-size: .8em;
18
+ }
19
+ }
20
+
21
+ .sidebar a {
22
+ color: var(--oc-white);
23
+ }
24
+
25
+ .sidebar p {
26
+ margin: 0;
27
+ }
28
+
29
+ .sidebar-item {
30
+ padding: var(--spacer-2);
31
+ }
32
+
33
+ .sidebar-nav {
34
+ border-bottom: 1px solid var(--border-color);
35
+ }
36
+ .sidebar-nav-list {
37
+ list-style: none;
38
+ margin: 0;
39
+ padding: 0;
40
+ }
41
+ .sidebar-nav-item {
42
+ display: block;
43
+ padding: var(--spacer) var(--spacer-2);
44
+ border-top: 1px solid var(--border-color);
45
+ }
46
+ .sidebar-nav-item.active,
47
+ a.sidebar-nav-item:hover,
48
+ a.sidebar-nav-item:focus {
49
+ text-decoration: none;
50
+ background-color: rgba(255,255,255,.1);
51
+ border-color: transparent;
52
+ }
53
+
54
+ a.social-icon {
55
+ margin-right: .5em;
56
+ text-decoration: none;
57
+ }
58
+
59
+ .sidebar-checkbox {
60
+ position: absolute;
61
+ opacity: 0;
62
+ -webkit-user-select: none;
63
+ -moz-user-select: none;
64
+ user-select: none;
65
+ }
66
+
67
+ .sidebar-toggle {
68
+ position: absolute;
69
+ top: var(--spacer);
70
+ left: var(--spacer);
71
+ display: flex;
72
+ }
73
+
74
+ .sidebar-toggle::before {
75
+ display: inline-block;
76
+ width: 32px;
77
+ height: 32px;
78
+ content: "";
79
+ background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23888' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M2.5 11.5A.5.5 0 013 11h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4A.5.5 0 013 7h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4A.5.5 0 013 3h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat;
80
+ }
81
+
82
+ @media (min-width: $md-screen) {
83
+ .sidebar-toggle {
84
+ position: fixed;
85
+ }
86
+ }
87
+
88
+ .wrap,
89
+ .sidebar,
90
+ .sidebar-toggle {
91
+ -webkit-backface-visibility: hidden;
92
+ -ms-backface-visibility: hidden;
93
+ backface-visibility: hidden;
94
+ }
95
+
96
+ .wrap,
97
+ .sidebar-toggle {
98
+ -webkit-transition: -webkit-transform .3s ease-in-out;
99
+ transition: transform .3s ease-in-out;
100
+ }
101
+
102
+ #sidebar-checkbox:checked + .sidebar {
103
+ z-index: 10;
104
+ visibility: visible;
105
+ }
106
+ #sidebar-checkbox:checked ~ .sidebar,
107
+ #sidebar-checkbox:checked ~ .wrap,
108
+ #sidebar-checkbox:checked ~ .sidebar-toggle {
109
+ -webkit-transform: translateX(var(--sidebar-width));
110
+ -ms-transform: translateX(var(--sidebar-width));
111
+ transform: translateX(var(--sidebar-width));
112
+ }
@@ -0,0 +1,47 @@
1
+ $sm-screen: 35.5rem;
2
+ $md-screen: 48rem;
3
+ $lg-screen: 64rem;
4
+ $xl-screen: 80rem;
5
+
6
+ :root {
7
+ --spacer: 1rem;
8
+ --spacer-2: calc(var(--spacer) * 2);
9
+ --spacer-3: calc(var(--spacer) * 3);
10
+
11
+ --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
12
+ --body-font-size: 16px;
13
+ --body-line-height: 1.5;
14
+ --body-color: var(--oc-gray-8);
15
+ --body-bg: var(--oc-white);
16
+
17
+ --link-color: var(--oc-orange-8);
18
+
19
+ --heading-font: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
20
+
21
+ --code-font: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
22
+ --code-bg: var(--oc-gray-1);
23
+
24
+ --border-radius: .5em;
25
+ --border-color: var(--oc-gray-6);
26
+
27
+ --sidebar-width: 20rem;
28
+ --sidebar-color: var(--oc-gray-4);
29
+ --sidebar-bg: var(--oc-gray-7);
30
+ }
31
+
32
+ @media (prefers-color-scheme: dark) {
33
+ :root {
34
+ --body-color: var(--oc-gray-4);
35
+ --body-bg: var(--oc-gray-9);
36
+
37
+ --link-color: var(--oc-blue-4);
38
+
39
+ --code-bg: var(--oc-gray-8);
40
+ }
41
+ }
42
+
43
+ @media (max-width: $md-screen) {
44
+ :root {
45
+ --sidebar-width: 16rem;
46
+ }
47
+ }
@@ -0,0 +1,8 @@
1
+ @import "variables";
2
+ @import "base";
3
+ @import "layout";
4
+ @import "sidebar";
5
+ @import "highlight-light";
6
+ @media (prefers-color-scheme: dark) {
7
+ @import "highlight-dark";
8
+ }