Skip to content

styles(tabs): Restyle tabs #316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/styles/_class.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ article.chapter {
.access-checkbox {
display: inline;
white-space: nowrap;
margin-left: 0.8em;
font-weight: 500;
}

.attributes {
Expand Down
43 changes: 28 additions & 15 deletions app/styles/components/_tabbed-layout.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
.tabbed-layout {
margin-top: 1em;
border: 1px solid #e0e0e0;
border-radius: 5px;
border-radius: 4px;
overflow: hidden;

hr {
margin: 0.5em 0;
}

@media (max-width: $mobile-portrait-screen){
border: 0;
border-radius: 0;
Expand All @@ -21,15 +25,14 @@
display: flex;
list-style-type: none;
overflow: hidden;
margin: 0 0;
padding: 0 0;
margin: 0 0 0.5em;
padding: 0;

&__item {
cursor: pointer;
flex-grow: 1;
margin: 0 0 1em 0;
border-top: solid 1px #fafafa;
border-right: solid 1px #e6e4e3;
border-bottom: 1px solid #dadada;
border-left: 1px solid transparent;
background-color: #f3f3f3;
background-image: linear-gradient(0deg, #f3f3f3, #ebebeb);
Expand All @@ -40,27 +43,37 @@

&:hover {
background-color: #ebebeb;
background-image: linear-gradient(0deg, #ebebeb, #f3f3f3);
border-bottom: none;
background-image: linear-gradient(0deg, #f9f9f9, #ebebeb);
}

&:first-of-type {
border-left: none;
border-top-left-radius: 4px;
}

}

&__item_selected {
background-image: linear-gradient(0deg, #e7624b, #f67862);
color: white;
border-right: 1px solid #f67862;
border-top: 1px solid rgba(255, 255, 0, 4);
cursor: default;
background-image: linear-gradient(0deg,#fdfdfd,#fff4e5);
color: #2f2f2f;
border-right: 1px solid #d4d2d0;
border-left: 1px solid #d4d2d0;
border-top: 3px solid #e77563;
border-bottom: 1px solid transparent;
font-weight: 600;

&:hover {
background-image: linear-gradient(0deg, #e7624b, #f67862);
color: white;
border-bottom: none;
background-image: linear-gradient(0deg,#fdfdfd,#fff4e5);;
color: #2f2f2f;
border-bottom: 1px solid transparent;
}

&:first-of-type {
border-left: none;
}

&:last-of-type {
border-right: none;
}
}

Expand Down