Skip to content

Commit 3983e82

Browse files
committed
feat: use 100% of html page and always minimize footer
1 parent ae068e0 commit 3983e82

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

src/main.css

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
/* Global styles */
2+
html {
3+
height: 100%;
4+
}
25
body {
6+
height: 100%;
37
margin: 0;
48
padding: 0;
5-
font-family:
6-
-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
7-
"Helvetica Neue", sans-serif;
9+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
10+
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
11+
sans-serif;
812
-webkit-font-smoothing: antialiased;
913
-moz-osx-font-smoothing: grayscale;
1014
background-color: #ffffff;
@@ -18,8 +22,9 @@ body {
1822

1923
/* YASGUI container */
2024
#yasgui {
25+
height: 100%;
2126
margin-top: 0px;
22-
height: calc(100vh - 60px);
27+
/* height: calc(100vh - 60px); */
2328
}
2429

2530
/* Footer styles */
@@ -35,9 +40,7 @@ body {
3540
align-items: center;
3641
justify-content: center;
3742
z-index: 1000;
38-
transition:
39-
transform 0.3s ease-in-out,
40-
background-color 0.3s ease,
43+
transition: transform 0.3s ease-in-out, background-color 0.3s ease,
4144
border-color 0.3s ease;
4245
}
4346

@@ -99,12 +102,14 @@ body {
99102

100103
/* Footer toggle button */
101104
#footer-toggle {
102-
display: none;
105+
display: flex;
106+
align-items: center;
107+
justify-content: center;
103108
position: fixed;
104109
bottom: 20px;
105110
right: 20px;
106-
width: 50px;
107-
height: 50px;
111+
width: 30px;
112+
height: 30px;
108113
border-radius: 50%;
109114
background-color: #0066cc;
110115
color: white;
@@ -125,28 +130,23 @@ body {
125130
transform: scale(0.95);
126131
}
127132

128-
/* Responsive behavior for small screens */
129-
@media (max-width: 768px) {
130-
#footer {
131-
transform: translateY(100%);
132-
}
133-
134-
#footer.expanded {
135-
transform: translateY(0);
136-
}
133+
#footer-toggle.hidden {
134+
opacity: 0;
135+
pointer-events: none;
136+
transform: scale(0);
137+
}
137138

138-
#footer-toggle {
139-
display: flex;
140-
align-items: center;
141-
justify-content: center;
142-
}
139+
/* Footer hidden by default on all screens */
140+
#footer {
141+
transform: translateY(100%);
142+
}
143143

144-
#footer-toggle.hidden {
145-
opacity: 0;
146-
pointer-events: none;
147-
transform: scale(0);
148-
}
144+
#footer.expanded {
145+
transform: translateY(0);
146+
}
149147

148+
/* Responsive behavior for small screens */
149+
@media (max-width: 768px) {
150150
.footer-left {
151151
position: relative;
152152
left: 0;

0 commit comments

Comments
 (0)