0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-11 04:42:42 +00:00

Merge pull request #2788 from naturalcrit/TidyNavbarLess

Tidy NavBar Less
This commit is contained in:
Trevor Buckner
2023-04-17 16:18:14 -04:00
committed by GitHub

View File

@@ -1,277 +1,278 @@
@import 'naturalcrit/styles/colors.less'; @import "naturalcrit/styles/colors.less";
@navbarHeight : 28px; @navbarHeight : 28px;
@keyframes pinkColoring { @keyframes pinkColoring {
//from {color: white;} 0% {color : pink;}
//to {color: red;} 50% {color : pink;}
0% {color: pink;} 75% {color : red;}
50% {color: pink;} 100% {color : pink;}
75% {color: red;} }
100% {color: pink;} .homebrew nav {
} .homebrewLogo {
.homebrew nav{ .animate(color);
.homebrewLogo{ font-family : CodeBold;
.animate(color); font-size : 12px;
font-family : CodeBold; color : white;
font-size : 12px; div {
color : white; margin-top : 2px;
div{ margin-bottom : -2px;
margin-top : 2px; }
margin-bottom : -2px; &:hover {
} color : @blue;
&:hover{ }
color : @blue; }
} .editTitle.navItem {
} padding : 2px 12px;
.editTitle.navItem{ input {
padding : 2px 12px; font-family : "Open Sans", sans-serif;
input{ font-size : 12px;
width : 250px; font-weight : 800;
margin : 0; width : 250px;
padding : 2px; margin : 0;
background-color : transparent; padding : 2px;
font-family : 'Open Sans', sans-serif; text-align : center;
font-size : 12px; color : white;
font-weight : 800; border : 1px solid @blue;
color : white; outline : none;
text-align : center; background-color : transparent;
border : 1px solid @blue; }
outline : none; .charCount {
} display : inline-block;
.charCount{ margin-left : 8px;
display : inline-block; text-align : right;
vertical-align : bottom; vertical-align : bottom;
margin-left : 8px; color : #666;
color : #666; &.max {
text-align : right; color : @red;
&.max{ }
color : @red; }
} }
} .brewTitle.navItem {
} font-size : 12px;
.brewTitle.navItem{ font-weight : 800;
height: 100%; height : 100%;
font-size : 12px; text-align : center;
font-weight : 800; text-transform : initial;
color : white; color : white;
text-align : center; background-color : transparent;
text-transform : initial; flex-grow : 1;
flex-grow : 1; }
background-color: transparent; .save-menu {
} .dropdown {
.save-menu { z-index : 1000;
.dropdown { }
z-index: 1000; .navItem i.fa-power-off {
} color : red;
.navItem i.fa-power-off { &.active {
color : red; color : rgb(0, 182, 52);
&.active { filter : drop-shadow(0 0 2px rgba(0, 182, 52, 0.765));
color : rgb(0, 182, 52); }
filter : drop-shadow(0 0 2px rgba(0, 182, 52, 0.765)) }
} }
} .patreon.navItem {
} border-right : 1px solid #666;
.patreon.navItem{ border-left : 1px solid #666;
border-left : 1px solid #666; &:hover i {
border-right : 1px solid #666; color : red;
&:hover i { }
color: red; i {
} .animate(color);
i{ animation-name : pinkColoring;
.animate(color); animation-duration : 2s;
animation-name: pinkColoring; color : pink;
animation-duration: 2s; }
color: pink; }
} .recent.navItem {
} position : relative;
.recent.navItem { .dropdown {
position : relative; position : absolute;
.dropdown{ z-index : 10000;
position : absolute; top : 28px;
top : 28px; left : 0;
left : 0px; overflow : hidden auto;
z-index : 10000; width : 100%;
width : 100%; max-height : ~"calc(100vh - 28px)";
overflow : hidden auto; scrollbar-color : #666 #333;
max-height : ~"calc(100vh - 28px)"; scrollbar-width : thin;
scrollbar-color : #666 #333; h4 {
scrollbar-width : thin; font-size : 0.8em;
h4{ display : block;
display : block; box-sizing : border-box;
box-sizing : border-box; padding : 5px 0;
padding : 5px 0px; text-align : center;
background-color : #333; color : #BBB;
font-size : 0.8em; border-top : 1px solid #888;
color : #bbb; background-color : #333;
text-align : center; &:nth-of-type(1) {
border-top : 1px solid #888; background-color : darken(@teal, 20%);
&:nth-of-type(1){ background-color: darken(@teal, 20%); } }
&:nth-of-type(2){ background-color: darken(@purple, 30%); } &:nth-of-type(2) {
} background-color : darken(@purple, 30%);
.item{ }
}
.item {
#backgroundColorsHover; #backgroundColorsHover;
.animate(background-color); .animate(background-color);
position : relative; position : relative;
display : block; display : block;
box-sizing : border-box; overflow : clip;
padding : 8px 5px 13px; box-sizing : border-box;
background-color : #333; padding : 8px 5px 13px;
color : white; text-decoration : none;
text-decoration : none; color : white;
border-top : 1px solid #888; border-top : 1px solid #888;
overflow : clip; background-color : #333;
.clear{ .clear {
display : none; position : absolute;
position : absolute; top : 50%;
top : 50%; right : 0;
transform : translateY(-50%); display : none;
right : 0px; width : 20px;
width : 20px; height : 100%;
height : 100%; transform : translateY(-50%);
background-color : #333; opacity : 70%;
opacity : 70%; border-radius : 3px;
border-radius : 3px; background-color : #333;
&:hover { &:hover {
opacity : 100%; opacity : 100%;
} }
i { i {
text-align : center; font-size : 10px;
font-size : 10px; width : 100%;
margin : 0; height : 100%;
height :100%; margin : 0;
width :100%; text-align : center;
} }
} }
&:hover{ &:hover {
background-color : @blue; background-color : @blue;
.clear {
.clear{ display : grid;
display : grid; place-content : center;
place-content : center; }
} }
} .title {
.title{ display : inline-block;
display : inline-block; overflow : hidden;
overflow : hidden; width : 100%;
width : 100%; white-space : nowrap;
text-overflow : ellipsis; text-overflow : ellipsis;
white-space : nowrap; }
} .time {
.time{ font-size : 0.7em;
position : absolute; position : absolute;
right : 2px; right : 2px;
bottom : 2px; bottom : 2px;
font-size : 0.7em; color : #888;
color : #888; }
} }
} }
} }
} .metadata.navItem {
.metadata.navItem { position : relative;
position : relative; display : flex;
padding: 0; align-items : center;
align-items: center; height : 100%;
display : flex; padding : 0;
flex-grow: 1; flex-grow : 1;
height: 100%; i {
i{ margin-right : 10px;
margin-right: 10px; }
} .window {
.window{ position : absolute;
position : absolute; z-index : -1;
bottom : 0; bottom : 0;
width : 440px; left : 50%;
left : 50%; display : flex;
max-height : ~"calc(100vh - 28px)"; justify-content : flex-start;
background-color : #333; width : 440px;
border : 3px solid #444; max-height : ~"calc(100vh - 28px)";
border-top : unset; margin : 0 auto;
border-radius : 0 0 5px 5px; padding : 0 10px 5px;
box-shadow : inset 0 7px 9px -7px #111; transition : transform 0.4s, opacity 0.4s;
display : flex; border : 3px solid #444;
flex-flow : row wrap; border-top : unset;
justify-content : flex-start; border-radius : 0 0 5px 5px;
align-content : baseline; background-color : #333;
padding : 0px 10px 5px; box-shadow : inset 0 7px 9px -7px #111;
margin : 0 auto; flex-flow : row wrap;
z-index : -1; align-content : baseline;
transition : transform 0.4s, opacity 0.4s; &.active {
&.active{ transform : translateX(-50%) translateY(100%);
transform: translateX(-50%) translateY(100%); opacity : 1;
opacity: 1; }
} &.inactive {
&.inactive{ transform : translateX(-50%) translateY(0%);
transform: translateX(-50%) translateY(0%); opacity : 0;
opacity: 0; }
} .row {
.row{ display : flex;
display : flex; width : 100%;
flex-flow : row wrap; flex-flow : row wrap;
width : 100%; h4 {
h4{ display : block;
display : block; box-sizing : border-box;
box-sizing : border-box; min-width : 76px;
padding : 5px 0px; padding : 5px 0;
color : #bbb; text-align : center;
text-align : center; color : #BBB;
flex-basis : 20%; flex-basis : 20%;
flex-grow : 1; flex-grow : 1;
min-width : 76px; }
} p {
p{ font-family : "Open Sans", sans-serif;
font-family : 'Open Sans', sans-serif; font-size : 10px;
font-size : 10px; font-weight : normal;
font-weight : normal; padding : 5px 0;
text-transform : initial; text-transform : initial;
padding : 5px 0; flex-basis : 80%;
flex-basis : 80%; flex-grow : 1;
flex-grow : 1; .tag {
.tag{ display : inline-block;
border : 2px solid grey; margin : 2px 2px;
padding : 2px; padding : 2px;
margin : 2px 2px; border : 2px solid grey;
display : inline-block; border-radius : 5px;
border-radius : 5px; background-color : #444;
background-color : #444; }
} a.userPageLink {
a.userPageLink{ text-decoration : none;
text-decoration: none; color : white;
color: white; &:hover {
&:hover{ text-decoration : underline;
text-decoration: underline; }
} }
} }
} &:nth-of-type(even) {
&:nth-of-type(even){ background-color : #555;
background-color: #555; }
} }
} }
} }
} .warning.navItem {
.warning.navItem{ position : relative;
position : relative; color : white;
background-color : @orange; background-color : @orange;
color : white; &:hover > .dropdown {
&:hover>.dropdown{ visibility : visible;
visibility : visible; }
} .dropdown {
.dropdown{ position : absolute;
position : absolute; z-index : 10000;
display : block; top : 28px;
top : 28px; left : 0;
left : 0px; display : block;
visibility : hidden; visibility : hidden;
z-index : 10000; box-sizing : border-box;
box-sizing : border-box; width : 100%;
width : 100%; padding : 13px 5px;
padding : 13px 5px; text-align : center;
background-color : #333; background-color : #333;
text-align : center; }
} }
} .account.navItem {
.account.navItem{ min-width : 100px;
min-width: 100px; }
} .account.username.navItem {
.account.username.navItem{ text-transform : none;
text-transform: none; }
} }
}