@@ -99,79 +99,29 @@ footer{
99
99
align-items : center;
100
100
justify-content : center;
101
101
}
102
-
103
102
.button {
104
- min-width : 300px ;
105
- min-height : 60px ;
106
- font-family : 'Sniglet' , cursive;
107
- font-size : 22px ;
108
- text-transform : uppercase;
109
- letter-spacing : 1.3px ;
110
- font-weight : 700 ;
111
- color : # 313133 ;
112
- background : # 4FD1C5 ;
113
- background : linear-gradient (90deg , rgba (129 , 230 , 217 , 1 ) 0% , rgba (79 , 209 , 197 , 1 ) 100% );
103
+ /* Green */
114
104
border : none;
115
- border-radius : 1000px ;
116
- box-shadow : 12px 12px 24px rgba (79 , 209 , 197 , .64 );
117
- transition : all 0.3s ease-in-out 0s ;
118
- cursor : pointer;
119
- outline : none;
120
- position : relative;
121
- padding : 10px ;
122
- }
123
-
124
- button ::before {
125
- content : '' ;
126
- border-radius : 1000px ;
127
- min-width : calc (300px + 12px );
128
- min-height : calc (60px + 12px );
129
- border : 6px solid # 00FFCB ;
130
- box-shadow : 0 0 60px rgba (0 , 255 , 203 , .64 );
131
- position : absolute;
132
- top : 50% ;
133
- left : 50% ;
134
- transform : translate (-50% , -50% );
135
- opacity : 0 ;
136
- transition : all .3s ease-in-out 0s ;
137
- }
138
-
139
- .button : hover , .button : focus {
140
- color : # 313133 ;
141
- transform : translateY (-6px );
105
+ padding : 15px 32px ;
106
+ text-align : center;
107
+ text-decoration : none;
108
+ display : inline-block;
109
+ font-size : 16px ;
110
+ border-radius : 1rem ;
111
+ cursor : pointer;
112
+ transition-duration : 0.7s ;
113
+
142
114
}
143
-
144
- button : hover ::before , button : focus ::before {
145
- opacity : 1 ;
115
+ .button-translate {
116
+
117
+ background-color : var (--primary-color );
118
+ color : black;
146
119
}
147
-
148
- button ::after {
149
- content : '' ;
150
- width : 30px ; height : 30px ;
151
- border-radius : 100% ;
152
- border : 5px solid # 00FFCB ;
153
- position : absolute;
154
- z-index : -1 ;
155
- top : 50% ;
156
- left : 50% ;
157
- transform : translate (-50% , -50% );
158
- animation : ring 1.5s infinite;
120
+ .button-translate : after {
121
+ color : white;
159
122
}
160
-
161
- button : hover :: after , button : focus :: after {
162
- animation : none ;
163
- display : none ;
123
+ . button-translate : hover {
124
+ color : white;
125
+ background-color : rgb ( 42 , 238 , 107 ) ;
126
+ border-radius : 0 rem ;
164
127
}
165
-
166
- @keyframes ring {
167
- 0% {
168
- width : 30px ;
169
- height : 30px ;
170
- opacity : 1 ;
171
- }
172
- 100% {
173
- width : 300px ;
174
- height : 300px ;
175
- opacity : 0 ;
176
- }
177
- }
0 commit comments