forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add pills version for the tabs component
- Loading branch information
1 parent
2c08b69
commit 6858782
Showing
7 changed files
with
113 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
app/assets/stylesheets/components/pill_tabs_container.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.pill-tabs-container { | ||
display: flex; | ||
} | ||
|
||
.pill-tabs-container .tab-items{ | ||
margin-bottom: 10px; | ||
} | ||
|
||
.pill-tabs-container .nav-item { | ||
display: block; | ||
padding: 0.5rem 1rem; | ||
} | ||
|
||
.pill-tabs-container .nav-item.active { | ||
border-radius: 5px; | ||
background-color: var(--primary-color); | ||
color: white !important; | ||
a { | ||
color: white !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,63 @@ | ||
.tabs-container { | ||
border-bottom: 1px solid #DFDFDF; | ||
border-bottom: 1px solid #DFDFDF; | ||
display: flex; | ||
|
||
& > div { | ||
display: flex; | ||
justify-content: center; | ||
& > div { | ||
display: flex; | ||
justify-content: space-between; | ||
padding: 0 50px; | ||
} | ||
justify-content: space-between; | ||
padding: 0 50px; | ||
} | ||
} | ||
|
||
.tabs-container hr{ | ||
border: 1px solid #f3f3f3; | ||
width: 100%; | ||
margin: 0; | ||
.tabs-container hr { | ||
border: 1px solid #f3f3f3; | ||
width: 100%; | ||
margin: 0; | ||
} | ||
.tabs-container .tab-items{ | ||
display: flex; | ||
margin: 0; | ||
|
||
.tabs-container .tab-items { | ||
display: flex; | ||
margin: 0; | ||
position: relative; | ||
|
||
.tab-pinned-right { | ||
position: absolute; | ||
right: 40px; | ||
} | ||
} | ||
.tabs-container .tab-items div{ | ||
font-size: 16px; | ||
font-weight: 400; | ||
color: #5e5e5e; | ||
margin-right: 50px; | ||
cursor: pointer; | ||
opacity: 60%; | ||
transition: opacity 0.3s ease; | ||
a { | ||
color: #5e5e5e !important; | ||
} | ||
|
||
.tabs-container .tab-items div { | ||
font-size: 16px; | ||
font-weight: 400; | ||
color: #5e5e5e; | ||
margin-right: 50px; | ||
cursor: pointer; | ||
opacity: 60%; | ||
transition: opacity 0.3s ease; | ||
|
||
a { | ||
color: #5e5e5e !important; | ||
} | ||
} | ||
|
||
.tabs-container .tab-items div:hover{ | ||
.tabs-container .tab-items div:hover { | ||
|
||
opacity: 100%; | ||
opacity: 100%; | ||
} | ||
|
||
.tabs-container .tab-items div hr{ | ||
display: none; | ||
margin-top: 10px; | ||
.tabs-container .tab-items div hr { | ||
display: none; | ||
margin-top: 10px; | ||
} | ||
.tabs-container .tab-items .active{ | ||
font-weight: 500; | ||
color: black; | ||
opacity: 100%; | ||
|
||
.tabs-container .tab-items .active { | ||
font-weight: 500; | ||
color: black; | ||
opacity: 100%; | ||
} | ||
.tabs-container .tab-items .active hr{ | ||
display: block; | ||
border: 1px solid var(--primary-color); | ||
opacity: 100%; | ||
|
||
.tabs-container .tab-items .active hr { | ||
display: block; | ||
border: 1px solid var(--primary-color); | ||
opacity: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
app/components/tabs_container_component/tabs_container_component.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters