mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
329 lines
5.8 KiB
Plaintext
329 lines
5.8 KiB
Plaintext
@import 'naturalcrit/styles/colors.less';
|
|
|
|
.metadataEditor{
|
|
position : absolute;
|
|
z-index : 5;
|
|
box-sizing : border-box;
|
|
width : 100%;
|
|
padding : 25px;
|
|
background-color : #999;
|
|
height : calc(100vh - 54px); // 54px is the height of the navbar + snippet bar. probably a better way to dynamic get this.
|
|
overflow-y : auto;
|
|
|
|
.sectionHead {
|
|
font-weight: 1000;
|
|
margin: 20px 0;
|
|
|
|
&:first-of-type {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
& > div {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.field-group {
|
|
display: flex;
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.field-column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 5 0 200px;
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
|
|
.field{
|
|
display : flex;
|
|
flex-wrap : wrap;
|
|
width : 100%;
|
|
min-width : 200px;
|
|
position : relative;
|
|
&>label{
|
|
width : 80px;
|
|
font-size : 11px;
|
|
font-weight : 800;
|
|
line-height : 1.8em;
|
|
text-transform : uppercase;
|
|
}
|
|
&>.value{
|
|
flex : 1 1 auto;
|
|
width : 50px;
|
|
&:invalid {
|
|
background : #ffb9b9;
|
|
}
|
|
}
|
|
input[type='text'], textarea {
|
|
border : 1px solid gray;
|
|
&:focus {
|
|
outline: 1px solid #444;
|
|
}
|
|
}
|
|
&.thumbnail{
|
|
height : 1.4em;
|
|
label{
|
|
line-height: 2.0em;
|
|
}
|
|
.value{
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
button{
|
|
border: 1px solid #999;
|
|
color: white;
|
|
padding: 0px 5px;
|
|
background-color: black;
|
|
&:hover{
|
|
background-color: #777;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.description {
|
|
flex: 1;
|
|
textarea.value {
|
|
resize : none;
|
|
height : auto;
|
|
font-family : 'Open Sans', sans-serif;
|
|
font-size : 0.8em;
|
|
}
|
|
}
|
|
|
|
&.language .language-dropdown {
|
|
max-width : 150px;
|
|
z-index : 200;
|
|
}
|
|
small {
|
|
font-size : 0.6em;
|
|
font-style : italic;
|
|
line-height : 1.4em;
|
|
display : inline-block;
|
|
}
|
|
}
|
|
|
|
|
|
.thumbnail-preview {
|
|
position: relative;
|
|
justify-self: center;
|
|
width: 80px;
|
|
height: min-content;
|
|
flex: 1 1;
|
|
max-height: 115px;
|
|
aspect-ratio: 1 / 1;
|
|
object-fit: contain;
|
|
background-color: #AAA;
|
|
}
|
|
|
|
.systems.field .value{
|
|
label{
|
|
vertical-align : middle;
|
|
margin-right : 15px;
|
|
cursor : pointer;
|
|
font-size : 0.7em;
|
|
font-weight : 800;
|
|
user-select : none;
|
|
white-space : nowrap;
|
|
display : inline-flex;
|
|
align-items : center;
|
|
}
|
|
a {
|
|
font-size : 0.7em;
|
|
font-weight : 800;
|
|
display : inline-flex;
|
|
}
|
|
input{
|
|
vertical-align : middle;
|
|
cursor : pointer;
|
|
margin : 3px;
|
|
}
|
|
}
|
|
.publish.field .value{
|
|
position : relative;
|
|
margin-bottom: 15px;
|
|
button{
|
|
width:100%;
|
|
}
|
|
button.publish{
|
|
.button(@blueLight);
|
|
}
|
|
button.unpublish{
|
|
.button(@silver);
|
|
}
|
|
}
|
|
|
|
.delete.field .value{
|
|
button{
|
|
.button(@red);
|
|
}
|
|
}
|
|
.authors.field .value{
|
|
font-size: 0.8em;
|
|
line-height : 1.5em;
|
|
}
|
|
|
|
.themes.field{
|
|
font-size : 13.33px;
|
|
.navDropdownContainer {
|
|
background-color : white;
|
|
position : relative;
|
|
z-index : 100;
|
|
&.disabled {
|
|
font-style :italic;
|
|
font-style : italic;
|
|
background-color : darkgray;
|
|
color : dimgray;
|
|
}
|
|
&>div:first-child {
|
|
border : 2px solid rgb(118,118,118);
|
|
padding : 6px 3px;
|
|
background-color : inherit;
|
|
i {
|
|
float : right;
|
|
}
|
|
&:hover {
|
|
background-color : @blue;
|
|
color : white;
|
|
}
|
|
}
|
|
.navDropdown {
|
|
box-shadow : 0px 5px 10px rgba(0, 0, 0, 0.3);
|
|
position : absolute;
|
|
width : 100%;
|
|
.item {
|
|
padding : 3px 3px;
|
|
border-top : 1px solid rgb(118, 118, 118);
|
|
position : relative;
|
|
overflow : visible;
|
|
background-color : white;
|
|
.preview {
|
|
display : flex;
|
|
flex-direction: column;
|
|
background : #ccc;
|
|
border-radius : 5px;
|
|
box-shadow : 0 0 5px black;
|
|
width : 200px;
|
|
color :black;
|
|
position : absolute;
|
|
top : 0;
|
|
right : 0;
|
|
opacity : 0;
|
|
transition : opacity 250ms ease;
|
|
z-index : 1;
|
|
overflow :hidden;
|
|
h6 {
|
|
font-weight : 900;
|
|
padding-inline:1em;
|
|
padding-block :.5em;
|
|
border-bottom :2px solid hsl(0,0%,40%);
|
|
}
|
|
}
|
|
&:hover {
|
|
background-color : @blue;
|
|
color : white;
|
|
}
|
|
&:hover > .preview {
|
|
opacity: 1;
|
|
}
|
|
>img {
|
|
mask-image : linear-gradient(90deg, transparent, black 20%);
|
|
-webkit-mask-image : linear-gradient(90deg, transparent, black 20%);
|
|
position : absolute;
|
|
right : 0;
|
|
top : 0px;
|
|
width : 50%;
|
|
height : 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.field .list {
|
|
display: flex;
|
|
flex: 1 0;
|
|
flex-wrap: wrap;
|
|
|
|
> * {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
#groupedIcon {
|
|
#backgroundColors;
|
|
display: inline-block;
|
|
height: ~"calc(100% + 0.6em)";
|
|
position: relative;
|
|
top: -0.3em;
|
|
right: -0.3em;
|
|
cursor: pointer;
|
|
min-width: 20px;
|
|
text-align: center;
|
|
color: white;
|
|
|
|
i {
|
|
position: relative;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
&:not(:last-child) {
|
|
border-right: 1px solid black;
|
|
}
|
|
|
|
&:last-child {
|
|
border-radius: 0 0.5em 0.5em 0;
|
|
}
|
|
}
|
|
|
|
.badge {
|
|
background-color: #dddddd;
|
|
border-radius: .5em;
|
|
font-size: .9em;
|
|
margin: 2px;
|
|
padding: .3em;
|
|
|
|
.icon {
|
|
#groupedIcon
|
|
}
|
|
}
|
|
|
|
.input-group {
|
|
height: ~"calc(.9em + 4px + .6em)";
|
|
|
|
input {
|
|
border-radius: .5em 0 0 .5em;
|
|
}
|
|
|
|
input:last-child {
|
|
border-radius: .5em;
|
|
}
|
|
|
|
.value {
|
|
width: 7.5vw;
|
|
min-width: 75px;
|
|
height: 100%;
|
|
}
|
|
|
|
.invalid:focus {
|
|
background-color: pink;
|
|
}
|
|
|
|
.icon {
|
|
#groupedIcon;
|
|
height: 97%;
|
|
font-size: .8em;
|
|
right: 1px;
|
|
top: -.54em;
|
|
|
|
i {
|
|
font-size: 1.125em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|