Skip to content

Commit 3736291

Browse files
knownasilyatoddjordan
authored andcommitted
styles(tabs): Restyle tabs (#316)
1 parent a2be56a commit 3736291

File tree

2 files changed

+30
-15
lines changed

2 files changed

+30
-15
lines changed

app/styles/_class.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ article.chapter {
7676
.access-checkbox {
7777
display: inline;
7878
white-space: nowrap;
79+
margin-left: 0.8em;
80+
font-weight: 500;
7981
}
8082

8183
.attributes {

app/styles/components/_tabbed-layout.scss

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
.tabbed-layout {
22
margin-top: 1em;
33
border: 1px solid #e0e0e0;
4-
border-radius: 5px;
4+
border-radius: 4px;
55
overflow: hidden;
66

7+
hr {
8+
margin: 0.5em 0;
9+
}
10+
711
@media (max-width: $mobile-portrait-screen){
812
border: 0;
913
border-radius: 0;
@@ -21,15 +25,14 @@
2125
display: flex;
2226
list-style-type: none;
2327
overflow: hidden;
24-
margin: 0 0;
25-
padding: 0 0;
28+
margin: 0 0 0.5em;
29+
padding: 0;
2630

2731
&__item {
2832
cursor: pointer;
2933
flex-grow: 1;
30-
margin: 0 0 1em 0;
31-
border-top: solid 1px #fafafa;
3234
border-right: solid 1px #e6e4e3;
35+
border-bottom: 1px solid #dadada;
3336
border-left: 1px solid transparent;
3437
background-color: #f3f3f3;
3538
background-image: linear-gradient(0deg, #f3f3f3, #ebebeb);
@@ -40,27 +43,37 @@
4043

4144
&:hover {
4245
background-color: #ebebeb;
43-
background-image: linear-gradient(0deg, #ebebeb, #f3f3f3);
44-
border-bottom: none;
46+
background-image: linear-gradient(0deg, #f9f9f9, #ebebeb);
4547
}
4648

4749
&:first-of-type {
4850
border-left: none;
4951
border-top-left-radius: 4px;
5052
}
51-
5253
}
5354

5455
&__item_selected {
55-
background-image: linear-gradient(0deg, #e7624b, #f67862);
56-
color: white;
57-
border-right: 1px solid #f67862;
58-
border-top: 1px solid rgba(255, 255, 0, 4);
56+
cursor: default;
57+
background-image: linear-gradient(0deg,#fdfdfd,#fff4e5);
58+
color: #2f2f2f;
59+
border-right: 1px solid #d4d2d0;
60+
border-left: 1px solid #d4d2d0;
61+
border-top: 3px solid #e77563;
62+
border-bottom: 1px solid transparent;
63+
font-weight: 600;
5964

6065
&:hover {
61-
background-image: linear-gradient(0deg, #e7624b, #f67862);
62-
color: white;
63-
border-bottom: none;
66+
background-image: linear-gradient(0deg,#fdfdfd,#fff4e5);;
67+
color: #2f2f2f;
68+
border-bottom: 1px solid transparent;
69+
}
70+
71+
&:first-of-type {
72+
border-left: none;
73+
}
74+
75+
&:last-of-type {
76+
border-right: none;
6477
}
6578
}
6679

0 commit comments

Comments
 (0)