-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move mixins above non-mixins, so you can use it in any file * Overwrite main $gutter for better padding * Add new font and weights * Update colors for nice table design * Update table styles with lighter design * Center layout, with "floating" sidebar. Inspired by heroku's dashboard * Make entire table rows clickable on index pages * Convert all SASS to SCSS so we can use Hound * Use overflow-y: auto for better scrollbar behavior Resources: https://css-tricks.com/snippets/sass/material-shadows-mixin/ https://css-tricks.com/snippets/css/a-guide-to-flexbox/
- Loading branch information
Showing
37 changed files
with
383 additions
and
119 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
$(function() { | ||
var keycodes = { space: 32, enter: 13 }; | ||
|
||
var visitDataUrl = function(event) { | ||
if (event.type=="click" || | ||
event.keyCode == keycodes.space || | ||
event.keyCode == keycodes.enter) { | ||
|
||
if(!event.target.href) { | ||
window.location = $(event.target).closest("tr").data("url"); | ||
} | ||
} | ||
}; | ||
|
||
$("table").on("click", ".table-row", visitDataUrl); | ||
$("table").on("keydown", ".table-row", visitDataUrl); | ||
}); |
This file was deleted.
Oops, something went wrong.
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,48 @@ | ||
.sidebar { | ||
flex: 0 0 280px; | ||
height: 100%; | ||
overflow-y: auto; | ||
|
||
&-logo { | ||
align-items: center; | ||
display: flex; | ||
height: 6em; | ||
justify-content: space-between; | ||
padding: 0 1em; | ||
|
||
img { | ||
display: block; | ||
height: 80%; | ||
padding-top: 1em; | ||
} | ||
|
||
&-heading { | ||
color: $grey-0; | ||
font-size: 1.6em; | ||
} | ||
} | ||
|
||
&-list { | ||
@include fill-parent; | ||
} | ||
|
||
a { | ||
@include fill-parent; | ||
border-bottom-left-radius: 4px; | ||
border-top-left-radius: 4px; | ||
color: $grey-0; | ||
display: block; | ||
padding: 0.5em 1em; | ||
transition: background-color 0.05s linear; | ||
|
||
&.active { | ||
@include card(1); | ||
background-color: $sidebar-active-color; | ||
} | ||
|
||
&:hover { | ||
@include card(1); | ||
background-color: $sidebar-hover-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
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,3 @@ | ||
@import "form"; | ||
@import "header"; | ||
@import "table"; |
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,31 @@ | ||
.form { | ||
&-actions { | ||
margin-left: 12em; | ||
} | ||
|
||
&-heading { | ||
font-size: 1.75em; | ||
margin: 0; | ||
padding-bottom: 0.5em; | ||
} | ||
|
||
&-field { | ||
align-items: baseline; | ||
display: flex; | ||
justify-content: flex-start; | ||
margin: 1.2em 0; | ||
width: 100%; | ||
|
||
label { | ||
margin-right: 2em; | ||
text-align: right; | ||
width: 10em; | ||
} | ||
|
||
input, | ||
select { | ||
background-color: $form-field-background-color; | ||
max-width: 30em; | ||
} | ||
} | ||
} |
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,10 @@ | ||
.header { | ||
@include display(flex); | ||
@include justify-content(space-between); | ||
@include align-items(flex-end); | ||
padding: $base-spacing 0; | ||
|
||
&-heading { | ||
margin-top: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.table-row { | ||
background-color: $white; | ||
border-left: 2px solid transparent; | ||
transition: $base-transition; | ||
|
||
&:hover { | ||
background-color: $grey-0; | ||
border-left-color: $blue; | ||
cursor: pointer; | ||
} | ||
} |
Oops, something went wrong.