Skip to content

Commit 7f18300

Browse files
committed
Adds design
1 parent c1c624e commit 7f18300

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+6180
-129
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,7 @@ venv.bak/
107107
.mypy_cache/
108108

109109
# Generated scss files
110-
**/assets/css/style.css
110+
**/assets/css/style.css
111+
112+
# Build output
113+
sps20/build

.sass-lint.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
rules:
2+
no-css-comments: 0
3+
indentation:
4+
- 2
5+
-
6+
size: 4
7+
force-pseudo-nesting: 0
8+
no-ids: 0
9+
force-element-nesting: 0
10+
class-name-format: 0
11+
no-important: 0
12+
no-qualifying-elements: 0
13+
no-trailing-zero: 0
14+
nesting-depth: 0
15+
force-attribute-nesting: 0
16+
quotes: 0
17+
no-vendor-prefixes: 0
18+
no-color-literals: 0
19+
no-transition-all: 0
20+
21+
files:
22+
ignore:
23+
- '**/font-awesome/scss/*.scss'
24+
- '**/foundation/*/*.scss'
25+
- '**/font-*.scss'

makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ usage:
22
@echo "Make targets: install, serve"
33

44
install: in_virtual_env
5-
pip install lektor
5+
pip install -r requirements.txt
66

77
serve: in_virtual_env
88
cd sps20 && lektor server -f scss --browse
99

10+
build: in_virtual_env
11+
cd sps20 && lektor build -f scss --output-path build
12+
1013
in_virtual_env:
1114
@if python -c 'import sys; (hasattr(sys, "real_prefix") or (hasattr(sys, "base_prefix") and sys.base_prefix != sys.prefix)) and sys.exit(1) or sys.exit(0)'; then \
1215
echo "Error: An active virtual environment is required"; exit 1; \

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lektor

runtime.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.7

sps20/assets/css/spectre-exp.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sps20/assets/css/spectre-icons.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sps20/assets/css/spectre.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sps20/assets/hero.jpg

585 KB
Loading

sps20/assets/logo.svg

+43
Loading
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Accordions
2+
.accordion {
3+
input:checked ~,
4+
&[open] {
5+
& .accordion-header {
6+
.icon {
7+
transform: rotate(90deg);
8+
}
9+
}
10+
11+
& .accordion-body {
12+
max-height: 50rem;
13+
}
14+
}
15+
16+
.accordion-header {
17+
display: block;
18+
padding: $unit-1 $unit-2;
19+
20+
.icon {
21+
transition: transform .25s;
22+
}
23+
}
24+
25+
.accordion-body {
26+
margin-bottom: $layout-spacing;
27+
max-height: 0;
28+
overflow: hidden;
29+
transition: max-height .25s;
30+
}
31+
}
32+
33+
// Remove default details marker in Webkit
34+
summary.accordion-header {
35+
&::-webkit-details-marker {
36+
display: none;
37+
}
38+
}
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Animations
2+
@keyframes loading {
3+
0% {
4+
transform: rotate(0deg);
5+
}
6+
100% {
7+
transform: rotate(360deg);
8+
}
9+
}
10+
11+
@keyframes slide-down {
12+
0% {
13+
opacity: 0;
14+
transform: translateY(-$unit-8);
15+
}
16+
100% {
17+
opacity: 1;
18+
transform: translateY(0);
19+
}
20+
}

sps20/assets/scss/spectre/_asian.scss

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Optimized for East Asian CJK
2+
html:lang(zh),
3+
html:lang(zh-Hans),
4+
.lang-zh,
5+
.lang-zh-hans {
6+
font-family: $cjk-zh-hans-font-family;
7+
}
8+
9+
html:lang(zh-Hant),
10+
.lang-zh-hant {
11+
font-family: $cjk-zh-hant-font-family;
12+
}
13+
14+
html:lang(ja),
15+
.lang-ja {
16+
font-family: $cjk-jp-font-family;
17+
}
18+
19+
html:lang(ko),
20+
.lang-ko {
21+
font-family: $cjk-ko-font-family;
22+
}
23+
24+
:lang(zh),
25+
:lang(ja),
26+
.lang-cjk {
27+
ins,
28+
u {
29+
border-bottom: $border-width solid;
30+
text-decoration: none;
31+
}
32+
33+
del + del,
34+
del + s,
35+
ins + ins,
36+
ins + u,
37+
s + del,
38+
s + s,
39+
u + ins,
40+
u + u {
41+
margin-left: .125em;
42+
}
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Autocomplete
2+
.form-autocomplete {
3+
position: relative;
4+
5+
.form-autocomplete-input {
6+
align-content: flex-start;
7+
display: flex;
8+
flex-wrap: wrap;
9+
height: auto;
10+
min-height: $unit-8;
11+
padding: $unit-h;
12+
13+
&.is-focused {
14+
@include control-shadow();
15+
border-color: $primary-color;
16+
}
17+
18+
.form-input {
19+
border-color: transparent;
20+
box-shadow: none;
21+
display: inline-block;
22+
flex: 1 0 auto;
23+
height: $unit-6;
24+
line-height: $unit-4;
25+
margin: $unit-h;
26+
width: auto;
27+
}
28+
}
29+
30+
.menu {
31+
left: 0;
32+
position: absolute;
33+
top: 100%;
34+
width: 100%;
35+
}
36+
37+
&.autocomplete-oneline {
38+
.form-autocomplete-input {
39+
flex-wrap: nowrap;
40+
overflow-x: auto;
41+
}
42+
43+
.chip {
44+
flex: 1 0 auto;
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)