-
Notifications
You must be signed in to change notification settings - Fork 0
/
CalculadoraBasica.css
102 lines (84 loc) · 2.14 KB
/
CalculadoraBasica.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
/*****************
Pablo Argallero - UO283216
Descipción de los estilos que contiene
******************/
input[type="button"]{
border-radius: 0.3em;
background-color: rgb(106, 106, 106);
color: white;
font-size: 1.5em;
}
/*pintamos los botones de los numeros de un color mas claro*/
input[type="button"][value="0"],
input[type="button"][value="1"],
input[type="button"][value="2"],
input[type="button"][value="3"],
input[type="button"][value="4"],
input[type="button"][value="5"],
input[type="button"][value="6"],
input[type="button"][value="7"],
input[type="button"][value="8"],
input[type="button"][value="9"],
input[type="button"][value="."]
{
background-color: rgb(26, 26, 26);
color: white;
}
input[type="button"][value="="]
{
background-color: rgb(143, 0, 0);
color: white;
}
section{
padding: 1em;
background-color: rgb(159, 159, 159);
border-style: solid;
border-width: 0.5em;
border-color: black;
}
footer{
padding: 1em;
}
input[type="text"]{
background-color: rgb(190, 244, 190);
color: black;
font-size: 1.2em;
font-family: "Lucida Console", "Courier New", monospace;
}
/********************************
LAYOUT
*********************************/
body{
display: flex;
flex-direction: column;
align-items: center;
}
section
{
display: grid;
grid-template-columns: [primera] 1fr
[segunda] 1fr
[tercera] 1fr
[cuarta] 1fr
[quinta]1fr [ultima];
grid-template-rows: [primera] 1fr
[segunda] 1fr
[tercera] 1fr
[cuarta] 1fr
[quinta] 1fr
[sexta]1fr [ultima];
grid-gap: 0.5em;
}
/*configuramos tamaño del input*/
label {
grid-column: primera / ultima;
}
input[type="text"]{
display: block;
width: 100%;
}
/*Configuramos el tamaño del boton +*/
input[value="+"]{
grid-row: quinta / ultima;
grid-column: cuarta/quinta;
}