Files
librePECS/main.css

148 lines
2.5 KiB
CSS
Raw Normal View History

:root {
--foreground-high: rgba(10,10,10,1);
--foreground-low: rgba(40,40,40,1);
--background-high: rgba(200,200,200,0.5);
--background-low: rgba(250,250,250,0.5);
--middle-accent: rgba(128,128,128,0.1);
--middle-shade: rgba(128,128,128,0.5);
--shadows-color: rgba(138,138,138,1);
}
body {
margin:0;
}
#root {
height: 100vh;
width: 100vw;
margin: 0;
display: flex;
flex-direction: column;
justify-items: stretch;
align-items: stretch;
}
#navigation {
padding-top:25px;
height: 25px;
box-shadow: inset 0 -2px 3px 0 var(--shadows-color);
}
#view {
flex: 1;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr;
2025-08-18 11:25:22 -06:00
justify-items: center;
grid-gap: 5%;
padding: 5%;
}
.board_tab {
display: inline-block;
height: 24px;
width: 100px;
border: solid 1px var(--foreground-low);
color: var(--foreground-high);
border-bottom: unset;
border-radius: 15px 15px 0 0;
background: var(--background-low);
text-align: center;
}
.active_board {
color: var(--foreground-low);
background: var(--background-high);
}
2025-08-18 11:25:22 -06:00
.libSlot, .pecSlot {
border: solid 3px var(--foreground-low);
border-radius: 6px;
2025-08-18 11:25:22 -06:00
user-select: none;
position: relative;
}
.pecSlot {
--square-pec-size: calc( min( min( 100vh, 100vw ), hypot( 100vh, 100vw ) ) * 0.15);
height: var(--square-pec-size);
width: var(--square-pec-size);
}
.empty {
color: var(--forground-low);
2025-08-18 11:25:22 -06:00
font-size: 100%;
text-align: center;
}
2025-08-12 16:08:02 -06:00
.dialog {
display: block;
position: absolute;
top: 0;
left: -100vw;
height: 100vh;
width: 100vw;
backdrop-filter: blur(0px);
transition: left 500ms, backdrop-filter 500ms;
}
.title_bar {
height: 50px;
box-shadow: inset 0 -2px 3px 0 var(--shadows-color);
2025-08-12 16:08:02 -06:00
display: flex;
justify-content: stretch;
font-size: 32pt;
user-select: none;
}
.title_text {
text-align: center;
flex: 1;
}
.close {
display: inline-block;
background: rgba(128,128,128,0.01);
box-shadow: inset 2px 2px 2px 0 rgba(128,128,128,0.5);
width: 50px;
text-align: center;
cursor: pointer;
}
.focused {
left: 0vw;
backdrop-filter: blur(5px);
transition: left 500ms, backdrop-filter 500ms;
}
.dialog_body {
2025-08-12 16:08:02 -06:00
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
grid-gap: 5%;
padding: 5%;
}
.pec {
text-align: center;
2025-08-18 11:25:22 -06:00
height: 100%;
width: 100%;
}
.pecImage {
height: 100%;
width: 100%;
object-fit: contain;
position: absolute;
top: 0;
left: 0;
}
.pecName {
position: absolute;
width: 100%;
bottom: 0;
left: 0;
text-align: center;
color: var(--foreground-high);
background: var(--background-high);
2025-08-12 16:08:02 -06:00
}