-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
152 lines (126 loc) · 2.36 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
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
150
151
152
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');
:root {
--default-bg-color: #f6f5f7;
--default-text-color: #3E363F;
--card-bg-color2: rgb(75, 159, 75);
--result-color: #0A81D1;
}
body {
font-family: 'Montserrat', sans-serif;
background-color: var(--default-bg-color);
color: var(--default-text-color);
display: grid;
min-height: 100dvh;
min-height: 100vh;
margin: 0;
}
h1,
h2 {
font-weight: bold;
font-size: 2rem;
text-align: center;
}
h1>em {
color: var(--result-color);
display: block;
}
label {
margin-bottom: 1rem;
}
.errored_input {
background-color: lightcoral;
}
#unit {
display: inline-grid;
grid-template-columns: repeat(2, 1fr);
border-radius: 1rem;
padding: .1rem;
margin: 0;
margin-left: .5rem;
font-size: small;
background-color: var(--default-bg-color);
outline: var(--result-color) solid;
border: none;
}
#unit input {
display: none;
}
#unit label {
text-align: center;
background-color: var(--default-bg-color);
border-radius: 1rem;
margin: 0;
padding: .2rem;
}
#unit input:checked + label {
background-color: var(--result-color);
color: white;
}
#weight {
background-color: lightgrey;
border: none;
outline-offset: none;
padding: .9rem 1rem;
border-radius: .2rem;
font-size: large;
}
#weight:focus {
outline: dotted;
}
#error {
color: red;
font-weight: bold;
/* Esto para evitar que se desplace el contenido al mostrar el error */
visibility: hidden;
}
table {
border-collapse: collapse;
color: var(--result-color);
}
caption {
font-size: 1.3rem;
text-decoration: underline double;
padding: 1rem;
}
th {
border-bottom: black solid 1px;
}
td {
padding: .7rem;
text-align: center;
}
.card {
display: grid;
width: 100%;
min-height: 100%;
}
.card_side {
padding: 2.7rem;
display: grid;
align-content: center;
justify-items: center;
}
.card_side--green {
background-color: var(--card-bg-color2);
color: white;
}
#explanation {
transition: opacity 400ms;
min-height: 10rem;
}
@media (width >=768px) {
body {
margin: 1rem;
place-items: center;
}
.card {
border-radius: .5rem;
overflow: hidden;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
0 10px 10px rgba(0, 0, 0, 0.22);
grid-template-columns: repeat(2, 1fr);
min-height: 55vh;
width: initial;
max-width: 1000px;
}
}