Skip to content

Commit d1eaeb7

Browse files
Merge pull request #676 from guillaume-vignal/responsive_webapp
Add responsivness
2 parents 73c57c7 + 4838034 commit d1eaeb7

File tree

6 files changed

+247
-81
lines changed

6 files changed

+247
-81
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies = [
4343
"nbformat>5.8.0",
4444
"numba>=0.60.0",
4545
"numpy>=2.0.0",
46-
"pandas>=2.2.2",
46+
"pandas>=2.2.2,<3.0.0",
4747
"plotly>=5.0.0,<6.0.0",
4848
"scikit-learn>=1.4.2,<1.6.0",
4949
"scipy>=1.13.0",

shapash/webapp/assets/material-icons.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
font-family: 'Material Icons';
1111
font-weight: normal;
1212
font-style: normal;
13-
font-size: 24px;
13+
font-size: calc(0.5rem + 0.85vw);
1414
line-height: 1;
1515
letter-spacing: normal;
1616
text-transform: none;

shapash/webapp/assets/style.css

Lines changed: 72 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
h3 {
2+
font-size: calc(0.6rem + 1.1vw) !important;
3+
}
4+
5+
h4 {
6+
font-size: calc(0.55rem + 0.95vw) !important;
7+
}
18
:root {
29
--main-color: #f4c000;
310
--bkg-color: #343736;
11+
--bs-body-font-size: calc(0.3rem + 0.5vw);
412
}
513

614
#shapash_title {
@@ -59,6 +67,10 @@
5967
border-color: var(--main-color);
6068
}
6169

70+
.rc-slider-mark {
71+
font-size: calc(0.25rem + 0.45vw);
72+
}
73+
6274

6375
/* CHECKBOX */
6476
.custom-control-input:checked~.custom-control-label::before {
@@ -75,6 +87,7 @@
7587
.Select--multi .Select-value {
7688
color: var(--bkg-color) !important;
7789
background-color: var(--main-color) !important;
90+
margin-top: 1px !important;
7891
}
7992

8093
/* DATATABLE */
@@ -92,6 +105,9 @@
92105
margin-left: 0 !important;
93106
}
94107

108+
.dash-spreadsheet.dash-freeze-top, .dash-spreadsheet.dash-virtualized {
109+
max-height: 100% !important;
110+
}
95111

96112
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td.cell--selected, td.focused {
97113
background-color : Transparent !important;
@@ -115,11 +131,11 @@
115131
/* EXPAND */
116132

117133
.dock-expand {
118-
width: 40px;
119-
height: 40px;
134+
width: 2vw;
135+
height: 2vw;
120136
position: absolute;
121-
top: -10px;
122-
right: -10px;
137+
top: -0.5vw;
138+
right: -0.5vw;
123139
background-color: white;
124140
border-radius: 26px;
125141
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
@@ -181,3 +197,55 @@
181197
{
182198
margin-bottom: 0;
183199
}
200+
201+
.Select-placeholder, .Select__placeholder {
202+
line-height: 1.4vw !important;
203+
font-size: calc(0.3rem + 0.5vw) !important;
204+
}
205+
206+
.Select-control, .Select__control {
207+
height: 1.4vw !important;
208+
line-height: 1.4vw !important;
209+
font-size: calc(0.3rem + 0.5vw) !important;
210+
}
211+
212+
.Select-value, .Select__single-value {
213+
line-height: 0.9vw !important;
214+
font-size: calc(0.3rem + 0.5vw) !important;
215+
margin-top: 0.3vw !important;
216+
}
217+
218+
.Select-input{
219+
padding: 0;
220+
height: 1.4vw !important;
221+
line-height: 1.4vw !important;
222+
}
223+
224+
.Select-input input {
225+
padding: 0;
226+
height: 1.4vw !important;
227+
line-height: 1.4vw !important;
228+
}
229+
230+
.Select-clear {
231+
font-size: calc(0.4rem + 0.65vw) !important;
232+
}
233+
234+
.Select-multi-value-wrapper, .Select__value-container {
235+
height: 1.4vw !important;
236+
min-height: 1.4vw !important;
237+
line-height: 1.4vw !important;
238+
}
239+
240+
input.form-control-s, input.form-control-s.form-control {
241+
height: 1.5vw !important;
242+
line-height: 1.5vw !important;
243+
font-size: 0.7vw !important;
244+
}
245+
246+
button#id_card, .btn-warning {
247+
height: 1.5vw !important;
248+
font-size: calc(0.3rem + 0.5vw) !important;
249+
align-items: center;
250+
padding-top: 0.2vw !important;
251+
}

0 commit comments

Comments
 (0)