Repository navigation
Expand file tree
/
Copy pathsite.css
More file actions
182 lines (162 loc) · 4.02 KB
/
Copy pathsite.css
File metadata and controls
182 lines (162 loc) · 4.02 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/* Real Python's light and dark palettes (the CMS's brand.json). The page
* follows the OS setting since it has no theme toggle. */
:root {
color-scheme: light dark;
--body-bg: #fff;
--body-color: #4a4f64;
--heading-color: #18354c;
--link-color: #6f61ad;
--note-bg: #ff7e73;
--note-color: #18354c;
--note-border: transparent;
}
@media (prefers-color-scheme: dark) {
:root {
--body-bg: #101820;
--body-color: #cfd9e1;
--heading-color: #e9eef3;
--link-color: #a7c8e3;
--note-bg: rgba(229, 62, 30, 0.18);
--note-color: #e9eef3;
--note-border: rgba(229, 62, 30, 0.6);
}
}
body{
background-color: var(--body-bg);
font-family: source sans pro,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol;
color: var(--body-color);
font-size: 20px;
margin-block-end: 0px;
margin-block-start: 0px;
}
h1{
margin: 2rem auto;
font-size: 2em;
color: var(--heading-color);
text-align: center;
}
p {
font-size: 1.2em;
color: var(--heading-color);
text-align: center;
margin: 1rem auto;
}
/*
* Real Python's CTA button (.btn-primary in the CMS's
* frontend/css/buttons.scss on top of Bootstrap 5's .btn), with the
* Sass color math resolved for $cta: #e53e1e.
*/
:root {
--cta: #e53e1e;
--cta-active: #e85235; /* $cta lightened 5% */
--cta-border-bottom: #d13618; /* $cta darkened 5% */
--cta-border-bottom-active: #dd391a; /* $cta darkened 2.5% */
--cta-shadow: rgba(0, 0, 0, 0.3) 0 0 10px;
}
button,
#src-code,
#back-to-rp {
-webkit-appearance: none;
appearance: none;
display: inline-block;
position: relative;
margin: 10px;
padding: 0.375em 0.75em;
font-family: inherit;
font-size: 1.1em;
font-weight: 400;
line-height: 1.5;
color: #fff;
text-align: center;
text-decoration: none;
vertical-align: middle;
cursor: pointer;
user-select: none;
background-color: var(--cta);
border-style: solid;
border-width: 0 1px 4px 1px;
border-color: var(--cta);
border-bottom-color: var(--cta-border-bottom);
border-radius: 0.375rem;
box-shadow: var(--cta-shadow);
transition:
color 0.15s ease-in-out,
background-color 0.15s ease-in-out,
border-color 0.15s ease-in-out,
box-shadow 0.15s ease-in-out;
}
:is(button, #src-code, #back-to-rp):hover,
:is(button, #src-code, #back-to-rp):focus {
color: #fff;
background-color: var(--cta-active);
border-color: var(--cta-active);
border-bottom-color: var(--cta-border-bottom-active);
}
:is(button, #src-code, #back-to-rp):focus:not(:focus-visible) {
outline: 0;
}
:is(button, #src-code, #back-to-rp):focus-visible {
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(229, 62, 30, 0.5);
}
/* Pressed: the bottom border shrinks from 4px to 2px and the top grows to
* 2px, so the button "sinks" into the page. */
:is(button, #src-code, #back-to-rp):active {
outline: 0;
border-top-width: 2px;
border-bottom-width: 2px;
background-color: var(--cta-active);
border-color: var(--cta-active);
border-bottom-color: var(--cta-border-bottom);
}
/* Bootstrap's .btn-lg, scaled up to be the page's main action */
#download {
padding: 0.4em 1em;
font-size: 1.6em;
border-radius: 0.5rem;
margin: 1.5rem auto 0.2rem auto;
}
.button-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
a {
color: var(--link-color);
text-decoration: none;
}
#logo {
width: 100%;
margin-left: auto;
margin-right: auto;
}
.main-container {
max-width: 40rem;
min-width: 10rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
margin:auto;
/* height: 80vh; */
}
.subtitle {
font-size: 0.9em;
margin-top: 10px;
padding: 0 2rem 0 2rem;
text-align: center;
}
.note {
margin: 2rem 3rem;
text-align: center;
background-color: var(--note-bg);
color: var(--note-color);
border: 1px solid var(--note-border);
padding: 1em;
border-radius: 5px;
}
.download-container {
display:flex;
flex-direction: column;
justify-content: center;
}