Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit f47f882

Browse files
committed
feat(styles): add primary button and close button styles
1 parent a0010bc commit f47f882

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

src/scss/buttons.scss

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
.button-primary {
2+
background-color: rgb(230, 230, 230);
3+
border-color: rgb(225, 225, 225);
4+
5+
&:hover {
6+
background-color: rgb(245, 245, 245);
7+
background-color: rgb(240, 240, 240);
8+
}
9+
}
10+
111
.button-green {
212
background-color: $color-green;
313
color: $color-white;
@@ -6,3 +16,46 @@
616
background-color: $color-green-light;
717
}
818
}
19+
20+
.close-button {
21+
background-color: transparent;
22+
border-color: transparent;
23+
cursor: pointer;
24+
height: 2rem;
25+
position: relative;
26+
width: 2rem;
27+
28+
&::before,
29+
&::after {
30+
background-color: rgba(0, 0, 0, 0.3);
31+
position: absolute;
32+
content: '';
33+
}
34+
35+
&::before {
36+
height: 100%;
37+
left: 50%;
38+
top: 0px;
39+
transform: translate(-50%, 0%) rotate(45deg);
40+
width: 1px;
41+
}
42+
43+
&::after {
44+
height: 1px;
45+
left: 0px;
46+
top: 50%;
47+
transform: translate(0%, -50%) rotate(45deg);
48+
width: 100%;
49+
}
50+
51+
&:hover::before,
52+
&:hover::after {
53+
background-color: rgba(0, 0, 0, 0.7);
54+
}
55+
56+
&:active::before,
57+
&:active::after {
58+
transform: rotate(55deg);
59+
transition: transform $transition-standard;
60+
}
61+
}

0 commit comments

Comments
 (0)