ConsultancyProject_2_ETL/dashboard/resources/css/app.css

172 lines
2.9 KiB
CSS
Raw Normal View History

2024-12-18 10:14:56 +01:00
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
box-sizing: border-box;
}
/* 2. Remove default margin */
* {
margin: 0;
font-family: sans-serif;
}
body {
/* 3. Add accessible line-height */
line-height: 1.5;
/* 4. Improve text rendering */
-webkit-font-smoothing: antialiased;
padding: 0 1em;
height: 100vh;
background-image: radial-gradient(73% 147%, #EADFDF 59%, #ECE2DF 100%), radial-gradient(91% 146%, rgba(255,255,255,0.50) 47%, rgba(0,0,0,0.50) 100%);
background-blend-mode: screen;
}
/* 5. Improve media defaults */
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
/* 6. Inherit fonts for form controls */
input, button, textarea, select {
font: inherit;
}
/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
/* 8. Improve line wrapping */
p {
text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
text-wrap: balance;
}
2024-12-18 19:52:06 +01:00
dt{
font-weight: 600;
}
dd + dt{
margin-top: .2em;
}
2025-01-04 18:16:12 +01:00
button[popovertarget]{
cursor: pointer;
display: inline-block;
width: 1.5em;
height: 1.5em;
border-radius: 50%;
border: 1px solid #fff;
background: #5470c6;
}
button[popovertarget]::before{
content: '?';
color: #fff;
font-weight: 700;
}
button[popovertarget]>span{
position: absolute;
left: -999em;
top: -999em;
}
[popover] {
border: none;
border-radius: 1em;
background: #fff;
padding: 1.5em;
border-radius: var(--small-border);
box-shadow: .0625em .0625em .625em rgba(0, 0, 0, 0.1);
max-width: 40em;
top: 4em;
margin: 0 auto;
}
[popover]::backdrop{
background-color: rgba(0,0,0,.5);
}
2024-12-18 10:14:56 +01:00
/*
9. Create a root stacking context
*/
#root, #__next {
isolation: isolate;
}
2024-12-18 19:52:06 +01:00
nav>ul{
list-style: none;
}
2024-12-18 10:14:56 +01:00
body>header{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 3em;
background: #ccc;
z-index: 99;
display: flex;
align-items: center;
padding: 0 1em;
}
main{
width: 100%;
2025-01-04 18:16:12 +01:00
height: 100vh;
padding: 4em 0 1em;
2024-12-18 10:14:56 +01:00
display: grid;
2025-01-04 18:16:12 +01:00
grid-template-columns: repeat(4, minmax(10%, 50%));
grid-template-rows: repeat(3, 1fr) 4em;
grid-template-areas:
"chart2 chart2 chart5 chart5"
"chart1 chart1 chart3 chart4"
"chart1 chart1 chart3 chart4"
"timeline timeline timeline timeline";
gap: .5em;
2024-12-18 10:14:56 +01:00
}
article{
background: #f9f9f9;
border: .0625em solid #ccc;
2025-01-04 18:16:12 +01:00
box-shadow: 0 5px 10px rgba(154,160,185,.05), 0 15px 40px rgba(166,173,201,.2);
border-radius: .2em;
2024-12-18 10:14:56 +01:00
display: grid;
}
article.header{
grid-template-columns: 100%;
2025-01-04 18:16:12 +01:00
grid-template-rows: minmax(1%, 10%) 1fr;
padding: .5em 1em 1em .5em;
}
article>header{
display: grid;
grid-template-columns: 1fr 1em;
grid-template-rows: 1fr;
2024-12-18 10:14:56 +01:00
}
article>header>h2{
2025-01-04 18:16:12 +01:00
font-size: .8em;
2024-12-18 10:14:56 +01:00
font-weight: 600;
}
2025-01-03 16:25:30 +01:00
@media(max-width: 960px){
body{
height: auto;
}
main{
height: auto;
grid-template-columns: 100%;
grid-template-rows: repeat(4, minmax(20em, 25em));
}
}