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