-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfullscreen.css
116 lines (95 loc) · 1.8 KB
/
fullscreen.css
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
/*
// This file is originally a part of https://github.com/qwiglydee/otree-advanced-demos
// SPDX-FileCopyrightText: © 2024 Maxim Vasilyev <[email protected]>
// SPDX-License-Identifier: MIT
*/
/**
* Fullscreen flexible page layout.
*
* Stretches page to full screen height. Width is defined according to bootstrap container adaptive style.
*
* The stylesheet defineds elements <header> <main> <footer> to be aligned at top/middle/bottom of the page.
* Content of the elements is centered or aligned to top/bottom.
*/
.otree-body>h2,
.otree-body>br,
form#liveform {
display: none;
}
.debug-info {
margin-top: 1rem;
}
/** width copy-pasted from boostrap container */
@media (min-width: 576px) {
.container {
max-width: 540px;
}
}
@media (min-width: 768px) {
.container {
max-width: 720px;
}
}
@media (min-width: 992px) {
.container {
max-width: 960px;
}
}
@media (min-width: 1200px) {
.container {
max-width: 1140px;
}
}
@media (min-width: 1400px) {
.container {
max-width: 1320px;
}
}
._otree-content {
height: 100vh;
display: flex;
flex-flow: column nowrap;
align-items: stretch;
padding: 0;
}
.otree-timer {
display: none;
}
/** page sections **/
header,
main,
footer
{
display: flex;
flex-flow: column nowrap;
padding: 0.75rem;
}
header {
justify-content: start;
align-items: center;
}
main {
justify-content: center;
align-items: center;
}
footer {
justify-content: end;
align-items: center;
}
header,
footer {
flex: 1 1 25%;
}
main {
flex: 1 1 50%;
}
/* clean up header and paragraph margins */
footer>*:last-child,
header>*:last-child,
main>*:last-child {
margin-bottom: 0;
}
/* prevent inputs to be too wide */
.input-group {
width: auto;
}