-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
149 lines (130 loc) · 2.67 KB
/
index.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
@import url('../../fonts/Montserrat/Montserrat.css');
*,
*::after,
*::before {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Montserrat', sans-serif;
}
body {
background-color: #f2f3f4;
}
#container {
--arrow-size: 10px;
--arrow-color: #00958c;
display: grid;
row-gap: 1rem;
margin-top: 1rem;
justify-content: center;
justify-items: center;
}
#title {
font-weight: 800;
font-size: 2.3rem;
text-align: center;
color: #00958c;
}
img {
--img-size: 7rem;
height: var(--img-size);
width: var(--img-size);
transition: transform 1s;
}
#image_container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.7rem;
padding: 0.5rem;
}
.arrow {
height: 0;
width: 0;
background-color: #f2f3f4;
justify-self: center;
cursor: pointer;
border: none;
align-self: center;
}
.arrow:focus {
outline: 2px solid #00958c;
}
.images {
display: grid;
grid-template-rows: 0.2fr 1fr 0.2fr;
grid-template-columns: 0.2fr 1fr 0.2fr;
grid-template-areas:
'up up up'
'left photo right'
'down down down';
}
.up_arrow {
border-left: var(--arrow-size) solid transparent;
border-right: var(--arrow-size) solid transparent;
border-bottom: var(--arrow-size) solid var(--arrow-color);
grid-area: up;
}
.down_arrow {
border-top: var(--arrow-size) solid var(--arrow-color);
border-left: var(--arrow-size) solid transparent;
border-right: var(--arrow-size) solid transparent;
grid-area: down;
}
.left_arrow {
border-top: var(--arrow-size) solid transparent;
border-bottom: var(--arrow-size) solid transparent;
border-right: var(--arrow-size) solid var(--arrow-color);
grid-area: left;
}
.right_arrow {
border-top: var(--arrow-size) solid transparent;
border-bottom: var(--arrow-size) solid transparent;
border-left: var(--arrow-size) solid var(--arrow-color);
grid-area: right;
}
#input_container {
display: grid;
width: fit-content;
}
.error {
color: red;
font-weight: 700;
text-align: center;
font-size: 0.7rem;
margin-top: 0.1rem;
margin-bottom: 0.5rem;
opacity: 0;
}
#image_url {
font-size: 1.2rem;
text-align: center;
border-style: solid;
border-color: #00958c;
padding: 0.2em 0.5em;
border-radius: 5px;
color: darkslategray;
font-weight: 500;
caret-color: #00958c;
}
#image_url:focus {
outline: none;
border-color: #00958c;
background-color: white;
box-shadow: 0 0 0 2px #00958c;
}
#load_url {
border: none;
background-color: #00958c;
color: white;
font-weight: 700;
font-size: 1.2rem;
width: fit-content;
justify-self: center;
padding: 0.5em 1em;
border-radius: 5px;
cursor: pointer;
}
#load_url:focus {
outline: none;
box-shadow: 0 0 7px 2px #00958c;
}