EddyCode commited on
Commit
31f2a96
·
1 Parent(s): 95d8326

Added CSS

Browse files
Files changed (1) hide show
  1. style.css +106 -19
style.css CHANGED
@@ -1,28 +1,115 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
 
 
 
 
 
 
 
 
 
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
 
 
 
 
 
 
 
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500&display=swap');
2
+
3
+
4
+ *{
5
+ margin: 0;
6
+ padding: 0;
7
+ box-sizing: border-box;
8
+ font-family: 'Quicksand',sans-serif;
9
+ }
10
+
11
+ body{
12
+ display: flex;
13
+ justify-content: center;
14
+ align-items: center;
15
+ min-height: 100vh;
16
+ background: #091921;
17
+ }
18
+
19
+ body::before{
20
+ content: '';
21
+ position: absolute;
22
+ top: 0;
23
+ left: 0;
24
+ width: 100%;
25
+ height: 100%;
26
+ background: linear-gradient(#e91e63,#ffc107);
27
+ clip-path: circle(22% at 30% 20%);
28
+ }
29
+
30
+ body::after{
31
+ content: '';
32
+ position: absolute;
33
+ top: 0;
34
+ left: 0;
35
+ width: 100%;
36
+ height: 100%;
37
+ background: linear-gradient(#ffffff,#da00ff);
38
+ clip-path: circle(20% at 70% 90%);
39
+ }
40
+
41
+ .container{
42
+ position: relative;
43
+ background: rgba(255,255,255,0.05);
44
+ border-radius: 6px;
45
+ overflow: hidden;
46
+ z-index: 10;
47
+ backdrop-filter: blur(15px);
48
+ border-top: 1px solid rgba(255,255,255,0.2);
49
+ border-left: 1px solid rgba(255,255,255,0.2);
50
+ box-shadow: 5px 5px 30px rgba(0,0,0,0.2);
51
  }
52
 
53
+ .container .calculator{
54
+ position: relative;
55
+ display: grid;
56
  }
57
 
58
+ .container .calculator .value{
59
+ grid-column: span 4;
60
+ height: 140px;
61
+ width:300px;
62
+ text-align:right;
63
+ border:none;
64
+ outline:none;
65
+ padding: 10px;
66
+ font-size: 30px;
67
+ background:transparent;
68
+ color: #fff;
69
+
70
+ border-bottom: 1px solid rgba(255,255,255,0.05);
71
+ border-right: 1px solid rgba(255,255,255,0.05);
72
  }
73
 
74
+ .container .calculator span{
75
+ display: grid;
76
+ place-items:center;
77
+ height:75px;
78
+ width:75px;
79
+ color:#fff;
80
+ font-weight: 400px;
81
+ cursor:pointer;
82
+ font-size:20px;
83
+ user-select:none;
84
+
85
+ border-bottom: 1px solid rgba(255,255,255,0.05);
86
+ border-right: 1px solid rgba(255,255,255,0.05);
87
+ transition: 0.5s
88
  }
89
 
90
+ .container .calculator span:hover{
91
+ transition:0s;
92
+ background:rgba(255,255,255,0.05)
93
  }
94
+
95
+ .container .calculator span:active{
96
+ background:#14ff47;
97
+ color: #192f00;
98
+ font-size:24px;
99
+ font-weight:500;
100
+ }
101
+
102
+ .container .calculator .clear{
103
+ grid-column: span 2;
104
+ width:150px;
105
+ background: rgba(255,255,255,0.05);
106
+ }
107
+
108
+ .container .calculator .plus{
109
+ grid-row: span 2;
110
+ height:150px;
111
+ }
112
+
113
+ .equal{
114
+ background: rgba(255,255,255,0.05);
115
+ }