ore/app/assets/stylesheets/_topbar.scss
/*
* This file is part of SpongeHome, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
@import 'sponge_variables';
$sp_logo_offset_x: 0;
$sp_logo_offset_y: -20px;
$sp_topbar_height: 63px;
$sp_logo_width: 200px;
// Fix anchor links
// TODO: Doesn't work properly for sections
/*:target:before {
content: '';
display: block;
height: $sp_topbar_height;
margin: -$sp_topbar_height 0 0;
}*/
#topbar {
position: fixed;
top: $sp_logo_offset_x;
z-index: 1000;
width: 100%;
//max-width: 1920px;
height: $sp_topbar_height;
background-color: $sponge_grey;
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.25);
line-height: 19px;
a {
text-decoration: none;
}
.container {
position: relative;
padding: 0;
}
}
#sp-logo-container {
display: inline-block;
margin-left: $sp_logo_offset_y;
cursor: pointer;
.logo {
display: block;
width: $sp_logo_width;
height: $sp_topbar_height;
padding-left: 20px;
padding-top: 11px;
@extend .sponge-headline;
* {
display: inline-block;
vertical-align: middle;
}
img {
height: 40px;
}
span {
margin-left: 3px;
font-size: 23px;
}
[data-fa-i2svg] {
color: gray;
}
}
&:hover {
background-color: #2a2a2a;
#sp-logo-menu {
display: block;
}
}
}
// Left dropdown menu
#sp-logo-menu {
display: none;
position: absolute;
top: $sp_topbar_height;
left: $sp_logo_offset_y;
width: $sp_logo_width;
}
#sp-logo-dropdown {
margin: 0;
padding: 10px 0 4px;
background-color: white;
border: 1px solid #e4e4e4;
border-radius: 0 0 4px 4px;
* {
box-sizing: content-box; // This is magic
}
li, a {
display: block;
}
li {
padding: 0;
&.active {
// Fix weird 1px border next to active item
position: relative;
left: -1px;
width: $sp_logo_width;
background-color: $sponge_yellow;
}
}
a {
padding: 10px 20px 10px 10px;
color: #474a54;
&:hover {
background-color: rgba(0, 0, 0, 0.1)
}
}
[data-fa-i2svg] {
padding: 0 10px 0 5px;
}
}
@media (max-width: 767px){
#sp-logo-container {
margin-left: 0;
}
#sp-logo-menu {
left: 0;
}
}
.ore-nav {
display: inline-block;
width: 15px !important;
height: auto;
margin: 0;
padding: 0 12px 4px 7px;
background-color: transparent;
border-radius: 0;
}