This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Revenues/Process tab table #1449
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
19f69d4
Arrow boxes
gemfarmer ab18258
tab clean up
gemfarmer 11221c4
variablize
gemfarmer bdf1acb
remove extra styles on homepage
gemfarmer 28996ea
new header size
gemfarmer f24cad5
hound
gemfarmer 404b264
hound
gemfarmer 7762ce5
pseudo class
gemfarmer e86468d
pseudo
gemfarmer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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) { | ||
padding-left: $ab-padding-half; | ||
} | ||
|
||
th:nth-child(2) { | ||
z-index: 50; | ||
} | ||
|
||
th:nth-child(3) { | ||
z-index: 40; | ||
} | ||
|
||
th:nth-child(4) { | ||
z-index: 30; | ||
} | ||
|
||
th:nth-child(5) { | ||
z-index: 20; | ||
} | ||
|
||
th:last-child { | ||
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 { | ||
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; | ||
} | ||
} |
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,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'); | ||
} | ||
} | ||
|
||
} |
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
@import 'breadcrumbs'; | ||
@import 'flowchart'; | ||
@import 'panel'; | ||
@import 'tabs'; |
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,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; | ||
} |
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
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'; |
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,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; | ||
} | ||
} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.