-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
111 lines (88 loc) · 1.65 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
:root {
--transparent_white: rgba(255,255,255,0.8);
}
body {
background: linear-gradient(260deg, #7CC3DF, #98A2A1);
font-family: 'Times New Roman', Times, serif;
color: var(--transparent_white);
}
.bg_color {
background: #1b2b34;
}
/* wrapper - the entire layout */
#wrapper {
display: grid;
gap: 10px;
margin: 25px auto;
grid-template-rows: auto 1fr auto;
min-height: 90vh;
max-width: 90vw;
}
/* header section */
#header {
text-align: center;
}
/* main section */
#main {
display: grid;
gap: 10px;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
/* section for each problem statement */
.code {
display: grid;
gap: 20px;
grid-template-rows: auto 1fr;
padding: 20px;
line-height: 1.5rem;
}
/* input values */
.form {
display: grid;
justify-items: center;
gap: 10px;
}
.form span:nth-of-type(1) {
text-align: justify;
}
input {
color: var(--transparent_white);
height: 1.5rem;
width: 15em;
border: none;
background: rgba(255,255,255,0.2);
padding: 5px;
}
input[type="number"] {
width: 5em;
}
button {
padding: 5px;
border: none;
border-radius: 5px;
}
/* answer grid item inside .code */
.answer {
align-self: end;
border: 1px solid;
border-radius: 5px;
padding: 10px;
background: rgba(255,255,255,0.1);
}
.answer::before {
content: "Answer: ";
}
/* footer section */
#footer {
padding: 15px;
text-align: center;
line-height: 1.5em;
}
#footer a {
color: aqua;
}
@media (max-width: 400px) {
#main {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
}