Repository navigation
Expand file tree
/
Copy pathbutton.css
More file actions
45 lines (40 loc) · 1.35 KB
/
Copy pathbutton.css
File metadata and controls
45 lines (40 loc) · 1.35 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
/* BUTTON CSS NOT MINE - H4 */
/* Apply base styles and variables to the anchor tag (.styled-button) */
.styled-button {
/* Variables */
--button_radius: 0.75em;
--button_color: #e8e8e8;
/* Changed outline color to a dark blue to match the card theme */
--button_outline_color: rgb(0, 0, 0);
font-size: 24px;
font-weight: bold;
/* CRITICAL: Remove underline and set button properties on the <a> tag */
text-decoration: none;
cursor: pointer;
border: none; /* Removed border as it's defined on button_top */
border-radius: var(--button_radius);
background: var(--button_outline_color);
display: inline-block; /* Allows width/height manipulation */
margin-top: 15px;
}
/* 2. BUTTON TOP (The visible layer that moves) */
.button_top {
display: block;
box-sizing: border-box;
border: 2px solid var(--button_outline_color);
border-radius: var(--button_radius);
padding: 0.75em 1.5em;
background: var(--button_color);
color: var(--button_outline_color);
transform: translateY(-0.2em);
transition: transform 0.1s ease;
}
/* 3. INTERACTIONS (Using .styled-button:hover instead of button:hover) */
.styled-button:hover .button_top {
/* Pull the button upwards when hovered */
transform: translateY(-0.44em);
}
.styled-button:active .button_top {
/* Push the button downwards when pressed */
transform: translateY(0);
}