Skip to content

Commit 9cef1fb

Browse files
committed
update the css to sucks less.
1 parent 58852a2 commit 9cef1fb

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
lines changed

frontend_api/assets/css/alert.css

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
:root {
2-
--font-size: 1.5vw;
2+
--font-size: 4vh;
33
}
44

55
div.wrapper {
6-
border-radius: 1vw;
6+
border-radius: 1vh;
77
background-color: #2d3140;
88
align-items: center;
99
display: flex;
1010
flex-direction: column;
11-
background-image: url('../img/background.png');
11+
background-image: url("../img/background.png");
1212
background-size: cover;
13-
width: 30vw;
14-
height: 30vw;
13+
width: 99vh;
14+
height: 99vh;
15+
margin: 1vh;
1516
}
1617

1718
p {
1819
color: #e8e8e8;
1920
font-size: var(--font-size);
20-
padding: 1.5vw;
21+
padding: 1.5vh;
2122
width: 95%;
2223
height: 90%;
2324
text-align: center;
@@ -30,16 +31,16 @@ p.message {
3031
text-align: center;
3132
margin: 0;
3233
font-size: var(--font-size);
33-
padding: 1vw;
34+
padding: 1vh;
3435
}
3536

3637
p.event {
3738
text-align: center;
38-
margin-bottom: 0vw;
39-
margin-top: .7vw;
39+
margin-bottom: 0vh;
40+
margin-top: 1.5vh;
4041
font-size: var(--font-size);
4142
height: fit-content;
42-
padding: 1vw;
43+
padding: 4.75vh;
4344
font-weight: bold;
4445
}
4546

@@ -57,13 +58,11 @@ p.raid {
5758

5859
p.resubscribe {
5960
color: rgb(32, 117, 42);
60-
6161
}
6262

63-
6463
h2.message {
65-
margin-bottom: .4vw;
66-
padding: 0vw;
64+
margin-bottom: 2vh;
65+
padding: 0vh;
6766
text-align: center;
6867
font-size: var(--font-size);
6968
}
@@ -72,7 +71,7 @@ div#message {
7271
width: 100%;
7372
height: 100%;
7473
display: flex;
75-
padding: 1.5vw;
74+
padding: 2vh;
7675
flex-direction: row;
7776
justify-content: space-around;
7877
align-items: center;
@@ -82,19 +81,18 @@ div#footer {
8281
width: 100%;
8382
height: 100%;
8483
display: flex;
85-
padding: 1.5vw;
84+
padding: 1.5vh;
8685
flex-direction: row;
8786
justify-content: space-around;
8887
align-items: center;
8988
}
9089

9190
span#sub {
9291
color: #9e2b25;
93-
font-size: 2vw;
94-
padding: 1.5vw;
92+
font-size: 6vh;
93+
padding: 1.5vh;
9594
width: 95%;
9695
height: 90%;
9796
text-align: center;
9897
margin: 0;
9998
}
100-

frontend_api/assets/css/main.css

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
/** write some css to display two divs side by side that contain lists of elements */
22
/* Path: main.css */
33

4+
html, mody {
5+
margin: 0;
6+
padding: 0;
7+
font-family: 'Roboto', sans-serif;
8+
font-size: 16px;
9+
background-color: #333;
10+
color: #fff;
11+
}
12+
413
div {
514
display: grid;
615
grid-template-columns: repeat(2, 1fr);

0 commit comments

Comments
 (0)