-
Notifications
You must be signed in to change notification settings - Fork 40
Revenues/Process tab table #1449
Changes from 7 commits
19f69d4
ab18258
11221c4
bdf1acb
28996ea
f24cad5
404b264
7762ce5
e86468d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
$ab-height: 70px; | ||
$ab-height-half: $ab-height / 2; | ||
$ab-gutter: 2px; | ||
$ab-wrap: $ab-height-half + (2 * $ab-gutter); | ||
$ab-h-indent: ($ab-height-half / 2); | ||
$ab-w-indent: ($ab-height-half / 2) + $ab-gutter; | ||
$ab-padding: 30px; | ||
$ab-padding-half: $ab-padding / 2; | ||
|
||
#revenue-types { | ||
width: 100%; | ||
|
||
thead { | ||
th { | ||
@include heading('para-md'); | ||
|
||
background-color: $green-mint; | ||
height: $ab-height; | ||
padding-left: $ab-padding; | ||
padding-right: $ab-padding-half; | ||
text-align: left; | ||
vertical-align: middle; | ||
z-index: 100; | ||
} | ||
|
||
th::nth-child(1) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Begin pseudo classes with a single colon: |
||
padding-left: $ab-padding-half; | ||
} | ||
|
||
th::nth-child(2) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Begin pseudo classes with a single colon: |
||
z-index: 50; | ||
} | ||
|
||
th::nth-child(3) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Begin pseudo classes with a single colon: |
||
z-index: 40; | ||
} | ||
|
||
th::nth-child(4) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Begin pseudo classes with a single colon: |
||
z-index: 30; | ||
} | ||
|
||
th::nth-child(5) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Begin pseudo classes with a single colon: |
||
z-index: 20; | ||
} | ||
|
||
th::last-child { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Begin pseudo classes with a single colon: |
||
padding-left: $ab-padding-half; | ||
z-index: 0; | ||
} | ||
} | ||
|
||
.arrow_box, | ||
.arrow_box-last { | ||
background: $green-mint; | ||
position: relative; | ||
} | ||
|
||
.arrow_box-last { | ||
border-right: $ab-gutter solid $white; | ||
} | ||
|
||
.arrow_box::first-of-type { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Begin pseudo classes with a single colon: |
||
background: $green-sea; | ||
color: $white; | ||
font-weight: $weight-bold; | ||
|
||
&::after { | ||
border-left-color: $green-sea; | ||
} | ||
} | ||
|
||
.arrow_box::before, | ||
.arrow_box::after { | ||
border: solid transparent; | ||
content: ''; | ||
height: 0; | ||
left: 100%; | ||
pointer-events: none; | ||
position: absolute; | ||
top: 50%; | ||
width: 0; | ||
} | ||
|
||
.arrow_box::before { | ||
border-color: transparent; | ||
border-left-color: $white; | ||
border-width: $ab-wrap 0 $ab-wrap $ab-w-indent; | ||
margin-top: -$ab-wrap; | ||
} | ||
|
||
.arrow_box::after { | ||
border-color: transparent; | ||
border-left-color: $green-mint; | ||
border-width: $ab-height-half 0 $ab-height-half $ab-h-indent; | ||
margin-top: -$ab-height-half; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.info-tabs { | ||
border-bottom: 5px solid $green-dark; | ||
margin-bottom: $base-padding-lite; | ||
padding: 0; | ||
|
||
li { | ||
padding-bottom: $base-padding-lite; | ||
padding-top: $base-padding-lite; | ||
} | ||
|
||
a { | ||
background-color: $mid-gray; | ||
border: 0; | ||
border-bottom: 2px solid $mid-gray; | ||
color: $base-font-color; | ||
padding: $base-padding-lite $base-padding; | ||
|
||
|
||
&[aria-selected="true"] { | ||
@include active-tab('info'); | ||
} | ||
|
||
&:hover, | ||
&:focus { | ||
@include active-tab('info'); | ||
} | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
@import 'breadcrumbs'; | ||
@import 'flowchart'; | ||
@import 'panel'; | ||
@import 'tabs'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.eiti-tabs { | ||
@include heading(para-sm); | ||
|
||
border-bottom: 1px solid $neutral-gray; | ||
margin: 0; | ||
padding: $base-padding-lite; | ||
padding-bottom: 0; | ||
text-align: left; | ||
|
||
|
||
|
||
li { | ||
display: inline-block; | ||
padding-bottom: 3px; | ||
} | ||
|
||
a { | ||
padding: $base-padding-lite; | ||
text-decoration: none; | ||
|
||
&[aria-selected="true"] { | ||
@include active-tab(); | ||
} | ||
|
||
&:hover, | ||
&:focus { | ||
@include active-tab(); | ||
} | ||
} | ||
|
||
} | ||
|
||
.eiti-tab-panel { | ||
padding: 0; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import 'type-mixins'; | ||
@import 'rotate'; | ||
@import 'padded-in-mobile'; | ||
@import 'tabs'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@mixin active-tab($color:'') { | ||
font-weight: $weight-bold; | ||
text-decoration: none; | ||
|
||
@if $color == 'info' { | ||
background-color: $green-dark; | ||
border-bottom: 2px solid $green-dark; | ||
color: $white; | ||
padding-bottom: 6px; | ||
} @else { | ||
background-color: $white; | ||
border: 1px solid $neutral-gray; | ||
border-bottom: 1px solid $white; | ||
color: $base-font-color; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid using id selectors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case I think siloing the code within an id makes sense.