Skip to content

Commit 97ab1d2

Browse files
committed
fixes
1 parent 706aeb5 commit 97ab1d2

File tree

1 file changed

+34
-33
lines changed

1 file changed

+34
-33
lines changed

static/result.css

+34-33
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ body {
1111
background: #222;
1212
text-align: center;
1313
font-family: "Roboto Mono";
14-
padding: 1em;
1514
}
1615

1716
h1 {
1817
font-size: 2.2em;
18+
text-align: center;
1919
}
20-
.results{
21-
margin-block: 4rem;
20+
.results {
21+
margin-block: 4rem;
2222
}
2323
.flip {
2424
position: relative;
@@ -35,13 +35,13 @@ h1 {
3535
position: relative;
3636
}
3737

38-
.flip > .front ::after{
39-
content: '';
40-
position: absolute;
41-
inset: 0;
42-
background-color: rgba(0,0,0,0.3);
43-
z-index: -1;
44-
border-radius: 10px;
38+
.flip > .front ::after {
39+
content: "";
40+
position: absolute;
41+
inset: 0;
42+
background-color: rgba(0, 0, 0, 0.3);
43+
z-index: -1;
44+
border-radius: 10px;
4545
}
4646
.flip > .back {
4747
position: absolute;
@@ -65,20 +65,18 @@ h1 {
6565
display: inline-block;
6666
margin-right: 2px;
6767
margin-bottom: 1em;
68-
width: 400px;
68+
width: min(95%, 400px);
6969
}
7070
.flip > .front,
7171
.flip > .back {
7272
display: block;
7373
color: white;
74-
width: inherit;
7574
background-size: cover !important;
7675
background-position: center !important;
7776
height: 220px;
78-
padding: 1em 2em;
7977
background: #313131;
8078
border-radius: 10px;
81-
display: flex!important;
79+
display: flex !important;
8280
justify-content: center;
8381
align-items: center;
8482
flex-direction: column;
@@ -93,16 +91,18 @@ h1 {
9391
-webkit-line-clamp: 6;
9492
-webkit-box-orient: vertical;
9593
}
94+
.flip > .back p{
95+
padding-inline: 1rem;
96+
}
9697

97-
.back>a{
98-
color: rgb(198, 198, 198);
99-
margin-top: 1.5rem;
98+
.back > a {
99+
color: rgb(198, 198, 198);
100+
margin-top: 1.5rem;
100101
}
101-
.back>a:hover{
102-
color: rgb(240, 240, 240);
102+
.back > a:hover {
103+
color: rgb(240, 240, 240);
103104
}
104105

105-
106106
.text-shadow {
107107
text-shadow: 1px 1px rgba(0, 0, 0, 0.04), 2px 2px rgba(0, 0, 0, 0.04),
108108
3px 3px rgba(0, 0, 0, 0.04), 4px 4px rgba(0, 0, 0, 0.04),
@@ -116,23 +116,24 @@ h1 {
116116
19px 19px rgba(0, 0, 0, 0.04), 1.25rem 1.25rem rgba(0, 0, 0, 0.04);
117117
}
118118

119-
120-
.grid-container{
121-
display: grid;
122-
grid-template-columns: 1fr 1fr 1fr;
123-
margin-inline: 5%;
124-
gap: 1rem;
125-
place-items: center;
119+
.grid-container {
120+
display: grid;
121+
grid-template-columns: 1fr 1fr 1fr;
122+
gap: 1rem;
123+
place-items: center;
126124
}
127125

128-
@media only screen and (max-width: 1500px){
129-
.grid-container{
126+
@media only screen and (max-width: 1500px) {
127+
.grid-container {
130128
grid-template-columns: 1fr 1fr;
131129
}
132130
}
133131

134-
@media only screen and (max-width: 930px){
135-
.grid-container{
136-
grid-template-columns: 1fr!important;
132+
@media only screen and (max-width: 930px) {
133+
.grid-container {
134+
grid-template-columns: 1fr !important;
137135
}
138-
}
136+
.flip > .front> h1{
137+
font-size: 1.8rem;
138+
}
139+
}

0 commit comments

Comments
 (0)