0e395b1e21
- Updated core toolbar & breadcrumb design
312 lines
No EOL
5.1 KiB
SCSS
312 lines
No EOL
5.1 KiB
SCSS
/**
|
|
* Includes the main navigation header and the faded toolbar.
|
|
*/
|
|
|
|
header .grid {
|
|
grid-template-columns: auto min-content auto;
|
|
}
|
|
|
|
header {
|
|
position: relative;
|
|
display: block;
|
|
z-index: 2;
|
|
top: 0;
|
|
background-color: $primary-dark;
|
|
color: #fff;
|
|
fill: #fff;
|
|
border-bottom: 1px solid #DDD;
|
|
box-shadow: $bs-card;
|
|
padding: $-xxs 0;
|
|
.links {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
.links a {
|
|
display: inline-block;
|
|
padding: $-m;
|
|
color: #FFF;
|
|
fill: #FFF;
|
|
}
|
|
.dropdown-container {
|
|
padding-left: $-m;
|
|
padding-right: 0;
|
|
}
|
|
.avatar, .user-name {
|
|
display: inline-block;
|
|
}
|
|
.avatar {
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
.user-name {
|
|
vertical-align: top;
|
|
padding-top: $-m;
|
|
position: relative;
|
|
top: -3px;
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
> * {
|
|
vertical-align: top;
|
|
}
|
|
> span {
|
|
padding-left: $-xs;
|
|
display: inline-block;
|
|
padding-top: $-xxs;
|
|
}
|
|
> svg {
|
|
padding-top: 4px;
|
|
font-size: 18px;
|
|
}
|
|
@include between($l, $xl) {
|
|
padding-left: $-xs;
|
|
.name {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.header-search {
|
|
display: inline-block;
|
|
}
|
|
header .search-box {
|
|
display: inline-block;
|
|
margin-top: 10px;
|
|
input {
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 40px;
|
|
color: #EEE;
|
|
z-index: 2;
|
|
padding-left: 40px;
|
|
}
|
|
button {
|
|
fill: #EEE;
|
|
z-index: 1;
|
|
left: 16px;
|
|
svg {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
|
|
color: #DDD;
|
|
}
|
|
::-moz-placeholder { /* Firefox 19+ */
|
|
color: #DDD;
|
|
}
|
|
:-ms-input-placeholder { /* IE 10+ */
|
|
color: #DDD;
|
|
}
|
|
:-moz-placeholder { /* Firefox 18- */
|
|
color: #DDD;
|
|
}
|
|
@include between($l, $xl) {
|
|
max-width: 200px;
|
|
}
|
|
}
|
|
|
|
.logo {
|
|
display: inline-block;
|
|
&:hover {
|
|
color: #FFF;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
.logo-text {
|
|
display: inline-block;
|
|
font-size: 1.8em;
|
|
color: #fff;
|
|
font-weight: 400;
|
|
padding: 14px $-l 14px 0;
|
|
vertical-align: top;
|
|
line-height: 1;
|
|
}
|
|
.logo-image {
|
|
margin: $-xs $-s $-xs 0;
|
|
vertical-align: top;
|
|
height: 43px;
|
|
}
|
|
|
|
.mobile-menu-toggle {
|
|
color: #FFF;
|
|
fill: #FFF;
|
|
font-size: 2em;
|
|
border: 2px solid rgba(255, 255, 255, 0.8);
|
|
border-radius: 4px;
|
|
padding: 0 $-xs;
|
|
position: absolute;
|
|
right: $-m;
|
|
top: 8px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
svg {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
@include smaller-than($l) {
|
|
header .header-links {
|
|
display: none;
|
|
background-color: #FFF;
|
|
z-index: 10;
|
|
right: $-m;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
box-shadow: $bs-hover;
|
|
margin-top: -$-xs;
|
|
&.show {
|
|
display: block;
|
|
}
|
|
}
|
|
header .links a, header .dropdown-container ul li a {
|
|
text-align: left;
|
|
display: block;
|
|
padding: $-s $-m;
|
|
color: $text-dark;
|
|
fill: $text-dark;
|
|
svg {
|
|
margin-right: $-s;
|
|
}
|
|
&:hover {
|
|
background-color: #EEE;
|
|
color: #444;
|
|
fill: #444;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
header .dropdown-container {
|
|
display: block;
|
|
padding-left: 0;
|
|
}
|
|
header .links {
|
|
display: block;
|
|
}
|
|
header .dropdown-container ul {
|
|
display: block !important;
|
|
position: relative;
|
|
background-color: transparent;
|
|
border: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.breadcrumbs {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
.breadcrumbs .separator {
|
|
fill: #aaa;
|
|
font-size: 1.6em;
|
|
line-height: 0.8;
|
|
margin: 0 $-xs;
|
|
margin-top: -2px;
|
|
}
|
|
|
|
.faded {
|
|
a, button, span, span > div {
|
|
color: #666;
|
|
fill: #666;
|
|
}
|
|
.text-button {
|
|
opacity: 0.5;
|
|
transition: all ease-in-out 120ms;
|
|
&:hover {
|
|
opacity: 1;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.faded span.faded-text {
|
|
display: inline-block;
|
|
padding: $-s;
|
|
}
|
|
|
|
.faded-small {
|
|
color: #000;
|
|
fill: #000;
|
|
font-size: 0.9em;
|
|
background-color: $primary-faded;
|
|
}
|
|
|
|
.toolbar {
|
|
position: relative;
|
|
> .grid > div {
|
|
opacity: 0.8;
|
|
transition: opacity ease-in-out 120ms;
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
.text-button {
|
|
color: #666;
|
|
fill: #666;
|
|
}
|
|
}
|
|
|
|
.action-buttons .text-button {
|
|
display: inline-block;
|
|
padding: $-xs $-s;
|
|
&:last-child {
|
|
padding-right: 0;
|
|
}
|
|
&:first-child {
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
|
|
|
|
.action-buttons .dropdown-container:last-child a {
|
|
padding-right: 0;
|
|
padding-left: $-s;
|
|
}
|
|
.action-buttons {
|
|
text-align: right;
|
|
&.text-left {
|
|
text-align: left;
|
|
.text-button {
|
|
padding-right: $-m;
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
&.text-center {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
@include smaller-than($m) {
|
|
.action-buttons .text-button {
|
|
padding: $-xs $-xs;
|
|
}
|
|
.action-buttons .dropdown-container:last-child a {
|
|
padding-left: $-xs;
|
|
}
|
|
.toolbar .col-xs-1:first-child {
|
|
padding-right: 0;
|
|
}
|
|
}
|
|
|
|
.nav-tabs {
|
|
text-align: center;
|
|
a, .tab-item {
|
|
padding: $-m;
|
|
display: inline-block;
|
|
color: #666;
|
|
fill: #666;
|
|
cursor: pointer;
|
|
&.selected {
|
|
border-bottom: 2px solid $primary;
|
|
}
|
|
}
|
|
}
|
|
.faded-small .nav-tabs a {
|
|
padding: $-s $-m;
|
|
} |