Skip to content

Commit 9ac07a7

Browse files
committed
changes in button
1 parent 609f4cd commit 9ac07a7

File tree

3 files changed

+24
-71
lines changed

3 files changed

+24
-71
lines changed

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"liveServer.settings.port": 5501
3+
}

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h1>LeetSpeak Translator</h1>
2121
<br>
2222
<br>
2323
<div class="wrap">
24-
<button id="btn" class="button">Translate</button>
24+
<button id="btn" class="button button-translate">Translate</button>
2525
</div>
2626
<br>
2727

style.css

+20-70
Original file line numberDiff line numberDiff line change
@@ -99,79 +99,29 @@ footer{
9999
align-items: center;
100100
justify-content: center;
101101
}
102-
103102
.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 */
114104
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+
142114
}
143-
144-
button:hover::before, button:focus::before {
145-
opacity: 1;
115+
.button-translate {
116+
117+
background-color: var(--primary-color);
118+
color: black;
146119
}
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;
159122
}
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: 0rem;
164127
}
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

Comments
 (0)