-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
74 lines (63 loc) · 1.44 KB
/
Copy pathstyles.css
File metadata and controls
74 lines (63 loc) · 1.44 KB
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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
max-width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: sans-serif;
background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
}
.calculatrice{
background-color: black;
display: flex; /* pour mettre les elements en colonnes */
flex-direction: column; /*les elements en colonnes vers le bas*/
padding : 15px;
border-radius: 5px;
box-shadow: 0 0 5px black;
}
.ecran {
width: 100%;
height: 100px;
background-color: rgb(198, 237, 255) ;
margin-bottom: 20px;
border-radius: 10px;
display: flex;
justify-content: flex-end; /*pour aligner le texte à droite de l'écran*/
align-items: flex-end; /*pour aligner le texte en bas de l'écran*/
padding: 5px;
font-size: 25px;
}
.touches{
display: grid;
grid-template-columns: repeat(4, 50px);
grid-template-rows: repeat(5, 50px);
grid-gap: 7px;
}
button{
border: none;
outline: none;
border-radius: 5px;
background-color: white;
box-shadow: 0 3px;
font-size: 20px;
}
button:active{
box-shadow: 0 1px;
transform: translateY(2px);
}
button[data-key="8"]{
background-color: yellow;
font-weight: bold;
color : white;
}
button[data-key="13"]{
grid-column: span 2;
background-color: green;
font-weight: bold;
color : white;
}