aboutsummaryrefslogtreecommitdiff
path: root/static/stylesheets/main.css
diff options
context:
space:
mode:
authorpacien2021-07-29 18:04:48 +0200
committerpacien2021-07-29 18:04:48 +0200
commit57ff25198a82b3f6f413440e4005f0ade8dfb8d8 (patch)
tree817c43e04b3413d773a999c1950e1af43f26c3e2 /static/stylesheets/main.css
parentf80c19c18eb01ed7e7c6f44cc25535c14659ba20 (diff)
downloaduge_l2_rdbms_python_proto-57ff25198a82b3f6f413440e4005f0ade8dfb8d8.tar.gz
app: render and serve proper web pages
Diffstat (limited to 'static/stylesheets/main.css')
-rw-r--r--static/stylesheets/main.css195
1 files changed, 195 insertions, 0 deletions
diff --git a/static/stylesheets/main.css b/static/stylesheets/main.css
new file mode 100644
index 0000000..93001ac
--- /dev/null
+++ b/static/stylesheets/main.css
@@ -0,0 +1,195 @@
1/* UGE / L2 / Intro to relational databases / Python project prototype
2 * Author: Pacien TRAN-GIRARD
3 * Licence: EUPL-1.2
4 */
5
6p {
7 line-height: 1.6em;
8}
9
10.page {
11 color: #526066;
12 padding: 0 1em;
13 max-width: 1200px;
14 margin: 0 auto;
15}
16
17.full-width {
18 width: 100%;
19}
20
21.l-box {
22 padding: .75em;
23}
24
25.centered {
26 margin-left: auto;
27 margin-right: auto;
28}
29
30.align-left {
31 text-align: left;
32}
33
34.align-right {
35 text-align: right;
36}
37
38.align-center {
39 text-align: center;
40}
41
42.input-invalid {
43 border: 1px solid #a94442 !important;
44 box-shadow: inset 0 1px 3px #f79291 !important;
45}
46
47table {
48 width: 100%;
49}
50
51.text-bold {
52 font-weight: bold;
53}
54
55/***** DISCLAIMER BAR *****/
56
57.disclaimer-bar {
58 color: white;
59 text-align: center;
60 font-size: 1.25em;
61 padding: .5em;
62}
63
64/***** LOGO *****/
65
66.branding h1,
67.branding h2 {
68 display: inline-block;
69}
70
71.branding h1 {
72 font-size: 4em;
73 /*padding-right: .5em;*/
74 /*border-right: 3px solid #819096;*/
75}
76
77.branding h2 {
78 padding-left: .5em;
79}
80
81.branding a {
82 text-decoration: inherit;
83 color: inherit;
84}
85
86/***** ACCOUNT-INFO *****/
87
88@media screen and (min-width: 768px) {
89 .account-info {
90 margin: 4em 0;
91 text-align: right;
92 }
93
94 .account-info > * {
95 display: inline;
96 }
97
98 .account-info .pure-button {
99 margin: .3em;
100 }
101
102 .account-info .pure-button:last-child {
103 margin-right: 0;
104 }
105}
106
107@media screen and (max-width: 768px) {
108 .account-info {
109 margin: 1em 0;
110 }
111
112 .account-info .pure-button {
113 box-sizing: border-box;
114 width: 100%;
115 margin: .3em 0;
116 }
117}
118
119/***** FLASH MESSAGES *****/
120
121.flash-message > * {
122 padding: 15px;
123 margin-bottom: 20px;
124 border: 1px solid transparent;
125}
126
127.flash-message > .success {
128 color: #3c763d;
129 background-color: #dff0d8;
130 border-color: #d6e9c6;
131}
132
133.flash-message > .info {
134 color: #31708f;
135 background-color: #d9edf7;
136 border-color: #bce8f1;
137}
138
139.flash-message > .warning {
140 color: #8a6d3b;
141 background-color: #fcf8e3;
142 border-color: #faebcc;
143}
144
145.flash-message > .error {
146 color: #a94442;
147 background-color: #f2dede;
148 border-color: #ebccd1;
149}
150
151/***** FOOTER *****/
152
153footer {
154 border-top: 1px solid #819096;
155 margin-top: 4em;
156 padding-top: 1em;
157 margin-bottom: 1em;
158}
159
160@media screen and (min-width: 64em) {
161 footer .footer-links {
162 float: right;
163 }
164}
165
166@media screen and (max-width: 64em) {
167 footer > * {
168 display: block;
169 }
170}
171
172/***** ACTION BUTTONS *****/
173
174.action-buttons * {
175 box-sizing: border-box;
176 color: white;
177}
178
179.action-buttons a {
180 width: 100%;
181 border-radius: 0;
182 padding: 1.25em;
183}
184
185.action-buttons a > * {
186 display: block;
187}
188
189.action-buttons a > span {
190 margin-top: 1em;
191
192 letter-spacing: 0.25em;
193 text-transform: uppercase;
194 font-weight: 600;
195}