0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 02:02:43 +00:00

Tidy NavBar Less

This commit is contained in:
Trevor Buckner
2023-04-12 17:35:18 -04:00
parent 45b7d7da88
commit 891bf528cd

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{ }
#backgroundColorsHover; }
.animate(background-color); .item {
position : relative; #backgroundColorsHover;
display : block; .animate(background-color);
box-sizing : border-box; position : relative;
padding : 8px 5px 13px; display : block;
background-color : #333; overflow : clip;
color : white; box-sizing : border-box;
text-decoration : none; padding : 8px 5px 13px;
border-top : 1px solid #888; text-decoration : none;
overflow : clip; color : white;
.clear{ border-top : 1px solid #888;
display : none; background-color : #333;
position : absolute; .clear {
top : 50%; position : absolute;
transform : translateY(-50%); top : 50%;
right : 0px; right : 0;
width : 20px; display : none;
height : 100%; width : 20px;
background-color : #333; height : 100%;
opacity : 70%; transform : translateY(-50%);
border-radius : 3px; opacity : 70%;
&:hover { border-radius : 3px;
opacity : 100%; background-color : #333;
} &:hover {
i { opacity : 100%;
text-align : center; }
font-size : 10px; i {
margin : 0; font-size : 10px;
height :100%; width : 100%;
width :100%; height : 100%;
} margin : 0;
} text-align : center;
&:hover{ }
background-color : @blue; }
&:hover {
.clear{ background-color : @blue;
display : grid; .clear {
place-content : center; display : grid;
} place-content : center;
} }
.title{ }
display : inline-block; .title {
overflow : hidden; display : inline-block;
width : 100%; overflow : hidden;
text-overflow : ellipsis; width : 100%;
white-space : nowrap; white-space : nowrap;
} text-overflow : ellipsis;
.time{ }
position : absolute; .time {
right : 2px; font-size : 0.7em;
bottom : 2px; position : absolute;
font-size : 0.7em; right : 2px;
color : #888; bottom : 2px;
} color : #888;
} }
} }
} }
.metadata.navItem { }
position : relative; .metadata.navItem {
padding: 0; position : relative;
align-items: center; display : flex;
display : flex; align-items : center;
flex-grow: 1; height : 100%;
height: 100%; padding : 0;
i{ flex-grow : 1;
margin-right: 10px; i {
} margin-right : 10px;
.window{ }
position : absolute; .window {
bottom : 0; position : absolute;
width : 440px; z-index : -1;
left : 50%; bottom : 0;
max-height : ~"calc(100vh - 28px)"; left : 50%;
background-color : #333; display : flex;
border : 3px solid #444; justify-content : flex-start;
border-top : unset; width : 440px;
border-radius : 0 0 5px 5px; max-height : ~"calc(100vh - 28px)";
box-shadow : inset 0 7px 9px -7px #111; margin : 0 auto;
display : flex; padding : 0 10px 5px;
flex-flow : row wrap; transition : transform 0.4s, opacity 0.4s;
justify-content : flex-start; border : 3px solid #444;
align-content : baseline; border-top : unset;
padding : 0px 10px 5px; border-radius : 0 0 5px 5px;
margin : 0 auto; background-color : #333;
z-index : -1; box-shadow : inset 0 7px 9px -7px #111;
transition : transform 0.4s, opacity 0.4s; flex-flow : row wrap;
&.active{ align-content : baseline;
transform: translateX(-50%) translateY(100%); &.active {
opacity: 1; transform : translateX(-50%) translateY(100%);
} opacity : 1;
&.inactive{ }
transform: translateX(-50%) translateY(0%); &.inactive {
opacity: 0; transform : translateX(-50%) translateY(0%);
} opacity : 0;
.row{ }
display : flex; .row {
flex-flow : row wrap; display : flex;
width : 100%; width : 100%;
h4{ flex-flow : row wrap;
display : block; h4 {
box-sizing : border-box; display : block;
padding : 5px 0px; box-sizing : border-box;
color : #bbb; min-width : 76px;
text-align : center; padding : 5px 0;
flex-basis : 20%; text-align : center;
flex-grow : 1; color : #BBB;
min-width : 76px; flex-basis : 20%;
} flex-grow : 1;
p{ }
font-family : 'Open Sans', sans-serif; p {
font-size : 10px; font-family : "Open Sans", sans-serif;
font-weight : normal; font-size : 10px;
text-transform : initial; font-weight : normal;
padding : 5px 0; padding : 5px 0;
flex-basis : 80%; text-transform : initial;
flex-grow : 1; flex-basis : 80%;
.tag{ flex-grow : 1;
border : 2px solid grey; .tag {
padding : 2px; display : inline-block;
margin : 2px 2px; margin : 2px 2px;
display : inline-block; padding : 2px;
border-radius : 5px; border : 2px solid grey;
background-color : #444; border-radius : 5px;
} background-color : #444;
a.userPageLink{ }
text-decoration: none; a.userPageLink {
color: white; text-decoration : none;
&:hover{ color : white;
text-decoration: underline; &:hover {
} text-decoration : underline;
} }
} }
&:nth-of-type(even){ }
background-color: #555; &:nth-of-type(even) {
} background-color : #555;
} }
} }
} }
.warning.navItem{ }
position : relative; .warning.navItem {
background-color : @orange; position : relative;
color : white; color : white;
&:hover>.dropdown{ background-color : @orange;
visibility : visible; &:hover > .dropdown {
} visibility : visible;
.dropdown{ }
position : absolute; .dropdown {
display : block; position : absolute;
top : 28px; z-index : 10000;
left : 0px; top : 28px;
visibility : hidden; left : 0;
z-index : 10000; display : block;
box-sizing : border-box; visibility : hidden;
width : 100%; box-sizing : border-box;
padding : 13px 5px; width : 100%;
background-color : #333; padding : 13px 5px;
text-align : center; text-align : center;
} background-color : #333;
} }
.account.navItem{ }
min-width: 100px; .account.navItem {
} min-width : 100px;
.account.username.navItem{ }
text-transform: none; .account.username.navItem {
} text-transform : none;
} }
}