-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.scss
163 lines (144 loc) · 3.5 KB
/
style.scss
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
153
154
155
156
157
158
159
160
161
162
163
// link font: poppins
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
// link reset.scss
@import "reset";
// * colors
$fade-white: #eee;
$white: #ffffff;
$blue: rgb(66, 66, 212);
$green: rgb(14, 151, 14);
$black: #000000;
$fade-black:#8a8484;
$shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.144);
* {
font-family: 'poppins', sans-serif;
}
body{
overflow: hidden;
}
//* some ready made classes
@mixin dimension($h, $w) {
height: $h;
width: $w;
}
@mixin flex($direction) {
display: flex;
justify-content: center;
align-items: center;
flex-direction: $direction;
}
@mixin head($color, $font) {
font-size: $font;
color: $color;
letter-spacing: 1px;
}
@mixin p($y, $x) {
padding: $y $x;
}
@mixin m($y, $x) {
margin: $y $x;
}
@mixin w($width) {
width: $width;
}
@mixin h($height) {
width: $width;
}
@mixin button($color) {
border: none;
padding: 10px 20px;
background-color: $color;
color: $white;
letter-spacing: 1px;
box-shadow: $shadow;
border-radius: 5px;
cursor: pointer;
@media (max-width:310px) {
font-size: 15px;
letter-spacing: 0px;
padding: 10px 15px;
}
@media (max-width:235px) {
font-size: 15px;
letter-spacing: 0px;
padding: 10px 8px;
}
}
.wrapper {
@include flex(row);
@include dimension(100vh, 100%);
@include p(0px, 15px);
background-color: $fade-white;
@media (max-width:278px) {
@include p(0px,5px);
}
.payment-box {
@include p(20px, 20px);
max-width: 500px;
background-color: $white;
border-radius: 10px;
box-shadow: $shadow;
h1 {
@include head($black, 30px);
@media screen and (max-width:512px) {
font-size: 20px;
}
@media screen and (max-width:307px) {
font-size: 18px;
}
}
.input-box{
@include m(25px,0px );
.input-label{
@include head($black, 16px );
letter-spacing: 0px;
font-weight: bold;
}
.input{
@include flex(row);
flex-wrap: wrap;
justify-content: flex-start;
gap: 15px 10px;
input{
@include p(4px,0px);
border:none;
outline: none;
border-bottom:1px solid $fade-black;
@media (max-width:460px) {
@include w(90%)
}
}
input:focus{
border-bottom: 1px solid $blue;
}
.sm-w{
@include w(120px);
@media (max-width:307px) {
@include w(50px)
}
}
}
}
.button-wrapper {
@include m(0px, 0px);
@include flex(row);
gap: 0px 25px;
justify-content: flex-start;
@media (max-width:300px) {
gap: 0px 20px;
}
button:nth-child(1) {
@include button($blue)
}
button:nth-child(2) {
@include button($green)
}
button{
transition: all 0.2s linear;
}
button:hover{
transform: translateY(-2px);
}
}
}
}