-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #315 from indentlabs/sidenav-ui
WIP UI Rework
- Loading branch information
Showing
101 changed files
with
2,168 additions
and
1,240 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
$(document).ready(function() { | ||
$('.js-enable-content-type').click(function () { | ||
var content_type = $(this).data('content-type'); | ||
var related_card = $(this).children('.card').first(); | ||
var is_currently_active = related_card.hasClass('active'); | ||
var ie_badge = $(this).find('.enabled-badge'); | ||
|
||
$.post('/customization/toggle_content_type', { | ||
content_type: content_type, | ||
active: is_currently_active ? 'off' : 'on' | ||
}); | ||
|
||
if (is_currently_active) { | ||
related_card.removeClass('active'); | ||
ie_badge.attr('data-badge-caption', 'hidden'); | ||
} else { | ||
related_card.addClass('active'); | ||
ie_badge.attr('data-badge-caption', 'active'); | ||
} | ||
|
||
// Return false so we don't jump to the top of the page on link click | ||
return false; | ||
}); | ||
}); |
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,5 @@ | ||
// $(document).ready(function () { | ||
// $('.tab-link').click(function() { | ||
// document.location = $(this).attr('href'); | ||
// }); | ||
// }); |
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,17 @@ | ||
.autosave-bar { | ||
position: fixed; | ||
bottom: 0; | ||
left: 0; | ||
width: 100%; | ||
|
||
margin: 0; | ||
padding: 4px 0; | ||
|
||
text-align: center; | ||
background: white; | ||
border-top: 2px solid lightgrey; | ||
|
||
i { | ||
font-size: 15px; | ||
} | ||
} |
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,44 @@ | ||
.btn-group { | ||
position: relative; | ||
display: -ms-inline-flexbox; | ||
display: inline-flex; | ||
} | ||
|
||
.btn-group.card { | ||
margin: 0; | ||
} | ||
|
||
.btn-group>.btn:first-child:not(:last-child) { | ||
border-top-right-radius: 0; | ||
border-bottom-right-radius: 0; | ||
} | ||
|
||
.btn-group>.btn:not(:first-child):not(:last-child) { | ||
border-radius: 0; | ||
border-left: 1px solid lightgrey; | ||
} | ||
|
||
.btn-group>.btn:last-child:not(:first-child), | ||
.btn-group>.dropdown-toggle:not(:first-child) { | ||
border-top-left-radius: 0; | ||
border-bottom-left-radius: 0; | ||
border-left: 1px solid lightgrey; | ||
} | ||
|
||
.btn-group>.btn-inactive { | ||
background-color: #607d8b; | ||
} | ||
|
||
.btn-group>.btn { | ||
-webkit-box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0), 0 0px 0px 0px rgba(0, 0, 0, 0), 0 0px 0px 0 rgba(0, 0, 0, 0); | ||
box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0), 0 0px 0px 0px rgba(0, 0, 0, 0), 0 0px 0px 0 rgba(0, 0, 0, 0); | ||
} | ||
|
||
.btn-group>.btn-inactive:hover { | ||
background-color: #728F9D; | ||
} | ||
|
||
.btn-group>.btn:hover { | ||
-webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2); | ||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2); | ||
} |
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,27 @@ | ||
.js-enable-content-type .card:not(.active) { | ||
-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */ | ||
filter: grayscale(100%); | ||
|
||
.card-image > img { | ||
-webkit-filter: blur(2px); /* Safari 6.0 - 9.0 */ | ||
filter: blur(2px); | ||
} | ||
} | ||
|
||
.js-enable-content-type .card:not(.active):hover { | ||
-webkit-filter: grayscale(75%); /* Safari 6.0 - 9.0 */ | ||
filter: grayscale(75%); | ||
|
||
.card-image > img { | ||
-webkit-filter: blur(0px); /* Safari 6.0 - 9.0 */ | ||
filter: blur(0px); | ||
} | ||
} | ||
|
||
.js-enable-content-type .enabled-badge { | ||
float: right; | ||
position: relative; | ||
top: -51px; | ||
right: 7px; | ||
z-index: 3; | ||
} |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
.card-image { | ||
max-height: 200px; | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -7,3 +7,7 @@ body { | |
main { | ||
flex: 1 0 auto; | ||
} | ||
|
||
.stealth-page-footer { | ||
padding-bottom: 20px; | ||
} |
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,13 +1,34 @@ | ||
.dropdown-content { | ||
min-width: 300px !important; | ||
min-width: 400px !important; | ||
} | ||
|
||
.navbar-fixed { | ||
margin-bottom: 15px; | ||
z-index: 1000 !important; | ||
@media only screen and (min-width: 993px) { | ||
body.has-fixed-sidenav { | ||
padding-left: 300px !important; | ||
} | ||
|
||
nav.navbar.logged-in { | ||
width: calc(100% - 300px); | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 993px) { | ||
body.has-fixed-sidenav { | ||
padding-left: 0 !important; | ||
} | ||
} | ||
|
||
@media only screen and (min-width: 601px) { | ||
nav, nav .nav-wrapper i, nav a.sidenav-trigger, nav a.sidenav-trigger i { | ||
height: 64px; | ||
line-height: 64px; | ||
} | ||
} | ||
|
||
.universe-filter-active { | ||
background: purple; | ||
height: 100%; | ||
nav.navbar { | ||
z-index: 10; | ||
transition: box-shadow .3s, background-color .3s; | ||
padding: 0 20px; | ||
background-color: #fff; | ||
color: rgba(0,0,0,0.87); | ||
} |
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,14 +1,43 @@ | ||
.sidenav { | ||
padding-top: 64px; | ||
li { | ||
display: block; | ||
} | ||
|
||
.logo-container { | ||
padding: 0 16px; | ||
height: 64px; | ||
line-height: 64px; | ||
font-size: 24px; | ||
border-bottom: 1px solid rgba(0,0,0,0.2); | ||
box-sizing: content-box; | ||
|
||
i.material-icons.right { | ||
position: relative; | ||
top: 8px; | ||
left: 26px; | ||
} | ||
} | ||
|
||
.header { | ||
background: #10B6FF; | ||
color: white; | ||
margin: 0; | ||
text-align: center; | ||
.collapsible .collapsible-header { | ||
text-transform: uppercase; | ||
height: 64px; | ||
line-height: 64px; | ||
|
||
.material-icons.left { | ||
margin-top: 8px; | ||
} | ||
} | ||
|
||
.collapsible .collapsible-header .chevron { | ||
float: right; | ||
height: 24px; | ||
width: 24px; | ||
line-height: 24px; | ||
margin: 20px 0 0 0; | ||
transition: transform .2s; | ||
} | ||
|
||
font-size: 12px; | ||
height: 20px; | ||
line-height: 20px; | ||
.collapsible>.active .collapsible-header .chevron { | ||
transform: rotate(-90deg); | ||
} | ||
} |
Oops, something went wrong.