Skip to content

Commit

Permalink
Merge pull request #560 from matematikk-mooc/marius/DIT-346
Browse files Browse the repository at this point in the history
DIT-346: Tabs
  • Loading branch information
madsenandreas authored Nov 5, 2024
2 parents f361251 + a7dbcd9 commit ae24f71
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/vue/design/re-styles/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

.custom-segments {
position: relative;
border: 2px solid lightgray;
}
.custom-segments__tabHeaders{
overflow-x: auto;
Expand All @@ -13,30 +14,31 @@
border-bottom: 0.5rem solid $color-grey-400;
white-space: nowrap;
margin: 0 !important;
width: fit-content;
overflow-x: initial !important;
}

.custom-segments__segment {
display: inline-block;
display: inline-flex;
position: relative;
padding: 10px;
border-right: 1px solid lightgray;
cursor: pointer;
color: #333;
text-decoration: none;
position: relative;
bottom: -0.5rem;

font-weight: 500;
&:hover {
background-color: $color-grey-400;
}


}
.custom-segments__segment a{
color: $color-black;
text-align: center;
font-family: Roboto;
font-size: 1rem;
font-style: normal;
font-weight: 500;

line-height: normal;
text-decoration: none !important;
&:focus {
Expand All @@ -45,16 +47,18 @@
}

.custom-segments__segment.active {
margin-bottom: -1rem;
border-bottom: 0.5rem solid $primary-hover-color;
color: $color-white;
overflow-x: initial !important;
}

.custom-segments__pane {
display: none;
padding-top: 20px;
border: none;
height: fit-content;
background-color: $color-grey-400;
padding:10px;
}

.custom-segments__pane.active {
Expand Down

0 comments on commit ae24f71

Please sign in to comment.