Skip to content

Commit a10eb16

Browse files
committed
move button to partial
1 parent 8752bd5 commit a10eb16

File tree

3 files changed

+42
-42
lines changed

3 files changed

+42
-42
lines changed

src/styles/_buttons.scss

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
.btn--primary {
2+
background-color: rgba($accent, .8);
3+
border-radius: 0.1875rem;
4+
border: 1px solid rgba($accent, .8);
5+
padding: 8px 15px;
6+
color: $light-color;
7+
font-weight: 400;
8+
transition: background-color 200ms linear;
9+
&:hover {
10+
background-color: rgba($accent, 1);
11+
}
12+
}
13+
.btn--secondary {
14+
background-color: transparent;
15+
border-radius: 0.1875rem;
16+
padding: 8px 15px;
17+
border: 1px solid #ccc;
18+
font-weight: 400;
19+
transition: border-color 200ms linear;
20+
&:hover {
21+
border-color: rgba($accent, .9);
22+
}
23+
}
24+
.btn--more {
25+
border-radius: 0.1875rem;
26+
margin-left: 1rem;
27+
}
28+
29+
.btn--circle {
30+
display: flex;
31+
justify-content: center;
32+
align-items: center;
33+
border-radius: 100%;
34+
text-align: center;
35+
background-color: $accent;
36+
color: $light-color;
37+
width: 48px;
38+
height: 48px;
39+
line-height: 0;
40+
font-size: 1.5rem;
41+
}

src/styles/cards/_base.scss

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,3 @@
1-
.btn--primary {
2-
background-color: rgba($accent, .8);
3-
border-radius: 0.1875rem;
4-
border: 1px solid rgba($accent, .8);
5-
padding: 8px 15px;
6-
color: $light-color;
7-
font-weight: 400;
8-
transition: background-color 200ms linear;
9-
&:hover {
10-
background-color: rgba($accent, 1);
11-
}
12-
}
13-
.btn--secondary {
14-
background-color: transparent;
15-
border-radius: 0.1875rem;
16-
padding: 8px 15px;
17-
border: 1px solid #ccc;
18-
font-weight: 400;
19-
transition: border-color 200ms linear;
20-
&:hover {
21-
border-color: rgba($accent, .9);
22-
}
23-
}
24-
.btn--more {
25-
border-radius: 0.1875rem;
26-
margin-left: 1rem;
27-
}
28-
29-
.btn--circle {
30-
display: flex;
31-
justify-content: center;
32-
align-items: center;
33-
border-radius: 100%;
34-
text-align: center;
35-
background-color: $accent;
36-
color: $light-color;
37-
width: 48px;
38-
height: 48px;
39-
line-height: 0;
40-
font-size: 1.5rem;
41-
}
42-
431
.react-rater-star.is-active {
442
color: $accent;
453
}

src/styles/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import './variables';
22
@import './mixins';
3+
@import './buttons';
34
@import './grid';
45
@import '../styles/cards/cards'

0 commit comments

Comments
 (0)