insomnia/app/css/components/tabs.scss

68 lines
1.2 KiB
SCSS
Raw Normal View History

2016-03-23 05:26:27 +00:00
@import '../constants/colors';
@import '../constants/dimensions';
2016-04-23 03:54:55 +00:00
$border-color: $hl-md;
2016-04-17 22:46:17 +00:00
2016-03-20 04:00:40 +00:00
.ReactTabs {
2016-03-23 05:26:27 +00:00
.ReactTabs__TabList {
2016-03-23 17:15:19 +00:00
flex-shrink: 0;
2016-04-05 05:35:21 +00:00
align-items: flex-start;
align-content: flex-start;
2016-04-17 22:46:17 +00:00
height: $line-height-sm;
&::after {
width: 100%;
height: $line-height-sm;
content: "";
border-bottom: 1px solid $border-color;
box-sizing: border-box;
}
2016-03-23 05:26:27 +00:00
}
2016-04-05 05:35:21 +00:00
.ReactTabs__Tab {
align-self: flex-start;
2016-04-17 22:46:17 +00:00
padding: $padding-sm / 4 $padding-md;
height: $line-height-sm;
box-sizing: border-box;
border-bottom: 1px solid $border-color;
border-top: 0 !important;
&:first-child {
border-left-color: transparent;
}
2016-04-06 07:19:36 +00:00
2016-04-18 05:58:58 +00:00
&:focus {
outline: 0;
}
2016-04-05 05:35:21 +00:00
button {
2016-04-23 03:54:55 +00:00
color: $hl-xxl;
2016-04-06 07:19:36 +00:00
position: relative;
2016-04-17 22:46:17 +00:00
height: 100%;
width: 100%;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
2016-04-05 05:35:21 +00:00
}
2016-03-20 04:00:40 +00:00
}
2016-04-05 05:35:21 +00:00
.ReactTabs__Tab--selected {
2016-04-17 22:46:17 +00:00
border: 1px solid $border-color;
border-bottom-color: transparent;
2016-04-05 05:35:21 +00:00
button {
color: inherit;
2016-04-17 22:46:17 +00:00
border: 0 !important;
2016-04-05 05:35:21 +00:00
}
2016-04-06 07:19:36 +00:00
button:hover {
2016-04-12 00:39:49 +00:00
background: transparent;
2016-04-06 07:19:36 +00:00
}
2016-04-05 05:35:21 +00:00
}
2016-04-10 06:59:05 +00:00
.tab-panel-wrapper {
width: 100%;
height: 100%;
}
2016-03-20 04:00:40 +00:00
}