-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
127 lines (120 loc) · 2.24 KB
/
style.css
File metadata and controls
127 lines (120 loc) · 2.24 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
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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: sans-serif;
transition: all 0.8s ease;
}
body {
background: linear-gradient(45deg, #f06291, #fffde7);
}
.container {
height: 100vh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}
.calculator {
position: relative;
height: auto;
width: auto;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 30px rgb(187, 130, 130);
background-color: #fff;
#display{
color: #0a1e23;
margin: 0 10px ;
height: 120px;
width: auto;
display: flex;
align-items: flex-end;
justify-content: flex-end;
font-size: 30px;
margin-bottom: 20px;
font-weight: 740;
}
#equal{
height: 130px;
}
#clear{
background-color: #ffd5d8;
color: #fc4552;
}
.btn-number{
background-color: #c3eaff;
color: black;
}
.btn-operator{
background-color: #ffd0fb;
color: #f967f3;
}
.btn-equal{
background-color: #adf9e7;
color: black;
}
/* Tema Oscuro */
&.dark{
background-color: #1b1b1b;
#display {
color: #f8fafb;
}
#clear{
background-color: #4c35aa;
color: white;
}
.btn-number{
background-color: #8efda6;
color: black;
font-weight: 600;
}
.btn-operator{
background-color: #f0db4f;
color: #aa00a4;
}
.btn-equal{
background-color: #f23b00;
color: white;
}
}
}
.theme-toggler{
position: absolute;
top: 30px;
right: 30px;
color: white;
cursor: pointer;
z-index: 1;
&::before{
content: '';
position: absolute;
height: 30px;
width: 30px;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
background-color: #333;
z-index: -1;
}
}
.theme-toggler.active{
color: #333;
&::before{
background-color: white;
}
}
button{
height: 60px;
width: 60px;
border: 0;
border-radius: 30px;
margin: 5px;
font-size: 20px;
cursor: pointer;
transition: all 200ms ease;
&:hover{
transform: scale(1.1);
}
}