-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyle.css
More file actions
158 lines (143 loc) · 3.26 KB
/
style.css
File metadata and controls
158 lines (143 loc) · 3.26 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/******************************************************************************
TIP: This is the stylesheet for the site
******************************************************************************/
/******************************************************************************
START Page structure and element resets
******************************************************************************/
/* A set of default style */
:root {
/* Generic sizing for the page */
--wrapper-height: 80vh;
/* Fonts for different elements */
--font-family: sans-serif;
--font-family-header: sans-serif;
--font-family-list: monospace;
/* Colors you'll see cascade through the elements */
/* Set your own colors! */
--color-bg: #17e593;
--color-bg-alt: #66bfff;
--color-text-main: #000000;
--color-primary: #ffff29;
--theme-color-title: #ffff29;
}
/* Basic page style resets */
* {
box-sizing: border-box;
}
[hidden] {
display: none !important;
}
/* Page structure */
body {
font-family: var(--font-family);
background-color: var(--color-bg);
background: fixed linear-gradient(0deg, var(--color-bg), var(--color-bg-alt));
text-align: left;
color: var(--color-text-main);
}
.wrapper {
min-height: var(--wrapper-height);
place-items: center;
margin: 1rem 2rem 0;
}
.content {
display: flex;
flex-direction: column;
max-width: 550px;
margin: 0 auto;
}
/* The footer and our remix on glitch button */
.tagline {
font-size: clamp(1rem, 0.925rem + 0.3333vw, 1.1rem);
padding-top: 1rem;
}
.footer {
display: flex;
justify-content: space-between;
margin: 2rem auto 0;
flex-wrap: wrap;
border-top: 4px solid #ffffff;
max-width: 550px;
padding-top: 1rem;
}
.btn--remix {
font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
padding: 0.8rem 1.75rem;
/*font sizes scaled by viewport https://css-tricks.com/linearly-scale-font-size-with-css-clamp-based-on-the-viewport/*/
font-size: clamp(0.9rem, 0.825rem + 0.3333vw, 1rem);
line-height: 1rem;
font-weight: 500;
height: 3rem;
align-items: center;
cursor: pointer;
background: #ffffff;
border: 2px solid #000000;
box-sizing: border-box;
border-radius: 4px;
text-decoration: none;
color: #000000;
white-space: nowrap;
flex-grow: 1;
text-align: center;
}
.btn--remix img {
position: relative;
top: 1px;
margin-right: 0.25rem;
}
.btn--remix:hover,
.btn--remix:focus {
background-color: var(--theme-color-title);
}
/* Typography */
p {
line-height: 1.5 !important;
}
.instructions {
padding-top: 1rem;
padding-bottom: 1rem;
}
h1,
h2,
h3,
h4,
h5 {
font-family: var(--font-family-header);
font-weight: bold;
line-height: 1.1;
color: var(--theme-color-title);
}
h1 {
margin-bottom: 1rem;
margin-top: 1rem;
font-size: 4rem;
display: inline-flex;
color: var(--theme-color-title);
justify-content: left;
}
/* Link styles */
a:hover,
a:active,
a:focus {
background: var(--color-primary);
}
h3 {
margin-bottom: 0;
}
img.illustration {
max-width: 12rem;
}
.imgholder {
width: 100%;
text-align: right;
}
/* Links that open files in the editor */
.fileopener {
cursor: pointer;
font-weight: bold;
border-bottom: 3px solid var(--color-text-main);
}
.fileopener:hover {
color:var(--theme-color-title);
border-color:var(--theme-color-title);
}