-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
170 lines (151 loc) · 3.28 KB
/
style.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
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
/* Body style light and dark */
body {
min-height: 100vh;
font-family: 'Roboto', sans-serif;
color: #212529;
background: rgb(255,255,255);
background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 70%, rgba(25,135,84,1) 70%, rgba(25,135,84,1) 100%);
background-repeat: no-repeat;
}
body.dark-mode {
background-color: #343a40;
color: #ffffff;
background: #343a40;
background: linear-gradient(0deg, #282c30 0%, #282c30 70%, #131416 70%,#131416 100%);
background-repeat: no-repeat;
}
/* Top bar styling light and dark */
.top-bar {
background-color: #198754;
padding: 10px 40px 10px 40px;
display: flex;
justify-content: space-between;
align-items: center;
color: #ffffff;
border-top: 15px solid #198754;
position: sticky;
top:0;
}
body.dark-mode .top-bar {
background-color: #131416;
border-top: 15px solid #131416;
}
.top-bar h1 {
font-size: 1.5rem;
margin-top: 3px;
font-weight: 900;
}
/* Form styling */
.custom-form {
max-width: 400px;
margin: 30px auto;
}
#formSection {
box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
border-radius: 10px;
background-color: white;
}
body.dark-mode #formSection {
color: white;
background-color:#343a40;
}
.form-label {
font-size: 0.9em;
margin-bottom:5px;
}
/* Table styling */
#conversionTable {
visibility: hidden;
}
/* Responsive blocks styling */
#lineChartBox,
#conversionTable,
#resultSection {
box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
border-radius: 10px;
padding: 20px;
background-color: white;
}
body.dark-mode #lineChartBox,
body.dark-mode #conversionTable,
body.dark-mode #resultSection {
color: white;
background-color:#343a40;
}
/* Form colors for light and dark mode (green vs blue) */
.form-control:focus {
border-color: #198754;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(30, 114, 31, 0.6);
}
.form-select:focus {
border-color: #198754;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(30, 114, 31, 0.6);
}
body.dark-mode .form-control:focus {
border-color: #0d6efd;
box-shadow: inset 0 1px 1px #0d6efd, 0 0 8px #0d6efd;
;
}
body.dark-mode .form-select:focus {
border-color: #0d6efd;
box-shadow: inset 0 1px 1px #0d6efd, 0 0 8px #0d6efd;
;
}
/* Top bar Title and Subtitle */
.mainTitle {
margin-bottom: 0px;
}
.mainSubtitle {
margin: 0;
}
.mainSubtitle a {
color: white;
}
/* Table styling */
.table-responsive thead {
position: sticky;
top: 0;
background-color: #343a40;
color: white;
z-index: 1;
}
body.dark-mode .table-responsive {
background-color: #343a40;
color: #fff;
}
body.dark-mode .table-responsive th,
body.dark-mode .table-responsive td {
border-color: #495057;
background-color: #343a40;
color: #fff;
}
body.dark-mode .table-responsive thead th {
background-color: #343a40;
color: #fff;
}
/* Result text paragraphs */
#startResultText {
margin: 0;
margin-top: 20px;
}
#endResultText {
margin: 0;
font-weight: 900;
}
#resultText {
margin-top: 10px;
font-style: italic;
color: grey;
font-size: 0.9em;
}
/* Flags styling */
.fi {
margin: 0px;
margin-right: 2px;
border: 0.5px dotted grey;
}
/* Empty flag*/
.fi-xx {
height: 1.05em !important;
border: 0.5px dotted grey;
}