update layout

This commit is contained in:
WinsDominoes 2024-05-08 13:07:09 +07:00
parent e83466c074
commit 18401fc791
5 changed files with 194 additions and 10 deletions

View File

@ -0,0 +1,6 @@
/*!
* Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/
:host,:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:400;font-display:block;src:url(../../fonts/fa-regular-400.woff2) format("woff2"),url(../../fonts/fa-regular-400.ttf) format("truetype")}.fa-regular,.far{font-weight:400}

View File

@ -3,25 +3,46 @@
:root { :root {
color-scheme: light dark; color-scheme: light dark;
--light-bg: #fafafa; --light-bg-color: #fafafa;
--light-color: rgba(0, 0, 0, 0.8); --light-fg-color: rgba(0, 0, 0, 0.8);
--light-nav-bg-color: #ffffff;
--light-nav-fg-color: rgba(0, 0, 0, 0.8);
--light-nav-border-color: rgba(0, 0, 0, 0.8);
--light-nav-backdrop-color: #fafafa;
--light-nav-shade-color: rgba(0, 0, 0, 0.12);
--light-nav-darker-shade-color: rgba(0, 0, 0, 0.12);
--dark-bg: #242424; --dark-bg: #242424;
--dark-color: #ffffff; --dark-fg-color: #ffffff;
--dark-nav-bg-color: #303030;
--dark-nav-fg-color: #ffffff;
--dark-nav-border-color: #ffffff;
--dark-nav-backdrop-color: #242424;
--dark-nav-shade-color: rgba(0, 0, 0, 0.36);
--dark-nav-darker-shade-color: rgba(0, 0, 0, 0.9);
}
@font-face {
font-family: Inter;
src: url("../fonts/Inter-VariableFont_slnt\,wght.ttf");
} }
* { * {
background-color: light-dark(var(--light-bg), var(--dark-bg)); background-color: light-dark(var(--light-bg-color), var(--dark-bg-color));
color: light-dark(var(--light-color), var(--dark-color)); color: light-dark(var(--light-fg-color), var(--dark-fg-color));
}
*, *:before, *:after {
box-sizing: inherit;
} }
html, body { html, body {
font-family: 'Inter', sans-serif; font-family: Inter;
font-optical-sizing: auto;
font-style: normal;
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box;
} }
h1, h2, h3, h4, h5 { h1, h2, h3, h4, h5 {
@ -33,6 +54,11 @@ a {
text-decoration: none; text-decoration: none;
} }
header {
position: sticky;
top: 0;
}
.light { .light {
color-scheme: light; color-scheme: light;
} }
@ -40,3 +66,102 @@ a {
.dark { .dark {
color-scheme: dark; color-scheme: dark;
} }
.nav {
width: 100%;
height: 50px;
display: flex;
box-shadow: 1px 1px 4px 0 light-dark(var(--light-nav-shade-color), var(--dark-nav-shade-color));
align-items: center;
}
.nav > .nav-header {
flex: 0.95;
padding-left: 1rem;
padding: 0 1rem 0 1rem;
}
.nav > .nav-header > .nav-title {
font-size: 22px;
color: light-dark(var(--light-nav-fg-color), var(--dark-nav-fg-color));
}
.nav > .nav-list {
display: flex;
margin: 0 1rem 0 auto;
gap: 2rem;
padding-left: 0;
}
.nav > .nav-list > li {
list-style-type: none;
}
.nav > .nav-list > li a {
text-decoration: none;
cursor: pointer;
}
.nav > #nav-check {
display: none;
}
.nav > .nav-btn > label > i {
display: none;
}
/* Screens smaller than 480 pixels */
@media (max-width: 420px) {
.nav {
width: 100%;
height: 50px;
background-color: light-dark(var(--light-nav-bg-color), var(--dark-nav-bg-color));
}
.nav > .nav-btn {
display: inline-block;
position: absolute;
right: 0;
top: 0;
padding-top: 0.2rem;
}
.nav > .nav-btn > label {
display: inline-block;
padding: 13px;
}
.nav > .nav-btn > label > i {
display: block;
}
.nav > .nav-list {
position: fixed;
display: flex;
flex-direction: column;
gap: 0;
width: 100%;
height: 0;
transition: all 0.3s ease-in;
top: 50px;
left: 0;
overflow: hidden;
background-color: light-dark(var(--light-nav-bg-color), var(--dark-nav-bg-color));
}
.nav > .nav-list > li {
padding: 0.5rem 0.75rem 0.5rem 0.75rem;
margin-bottom: 0.35rem;
border-radius: 7px;
}
.nav > .nav-list > li:hover {
background-color: light-dark(hsla(0,0%,100%,.05), rgba(0,0,0,.05));
}
.nav > #nav-check:checked ~ .nav-list {
height: calc(100vh - 50px);
padding: 5px;
}
}

Binary file not shown.

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1080" height="1080" viewBox="0 0 1080 1080" xml:space="preserve">
<desc>Created with Fabric.js 5.2.4</desc>
<defs>
</defs>
<g transform="matrix(1 0 0 1 540 540)" id="4846c343-d940-4842-8ace-774b5524ba00" >
<rect style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(255,255,255); fill-rule: nonzero; opacity: 1; visibility: hidden;" vector-effect="non-scaling-stroke" x="-540" y="-540" rx="0" ry="0" width="1080" height="1080" />
</g>
<g transform="matrix(1 0 0 1 540 540)" id="3bd37611-f20e-402b-86e4-2a225f655489" >
</g>
<g transform="matrix(45 0 0 45 540 540)" >
<path style="stroke: rgb(0,0,0); stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: evenodd; opacity: 1;" transform=" translate(-12, -12)" d="M 3 6.75 C 3 6.335786437626905 3.335786437626905 6 3.75 6 L 20.25 6 C 20.664213562373096 6 21 6.335786437626905 21 6.75 C 21 7.164213562373095 20.664213562373096 7.5 20.25 7.5 L 3.75 7.5 C 3.335786437626905 7.5 3 7.164213562373095 3 6.75 Z M 3 12 C 3 11.585786437626904 3.335786437626905 11.25 3.75 11.25 L 20.25 11.25 C 20.664213562373096 11.25 21 11.585786437626904 21 12 C 21 12.414213562373096 20.664213562373096 12.75 20.25 12.75 L 3.75 12.75 C 3.335786437626905 12.75 3 12.414213562373096 3 12 Z M 3 17.25 C 3 16.835786437626904 3.335786437626905 16.5 3.75 16.5 L 20.25 16.5 C 20.664213562373096 16.5 21 16.835786437626904 21 17.25 C 21 17.664213562373096 20.664213562373096 18 20.25 18 L 3.75 18 C 3.335786437626905 18 3 17.664213562373096 3 17.25 Z" stroke-linecap="round" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -6,8 +6,46 @@
<title>Apps by WinsCloud</title> <title>Apps by WinsCloud</title>
<link rel="stylesheet" href="assets/css/style.css"> <link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head> </head>
<body> <body>
<h1>hallo</h1> <header>
<nav class="nav">
<input type="checkbox" id="nav-check">
<div class="nav-header">
<a href="/">
<div class="nav-title">
<b>WinsCloud Apps</b>
</div>
</a>
</div>
<div class="nav-btn">
<label for="nav-check">
<i class="fa fa-bars"></i>
</label>
</div>
<ul class="nav-list">
<li><a href="https://git.winscloud.net"><b>Git</b></a></li>
<li><a href="about.html"><b>About</b></a></li>
</ul>
</nav>
</header>
<main>
<h1>thingy</h1>
<pre>thing
dfdf
dffdfd
dffdfd
dffdffv
</pre>
</main>
<footer>
</footer>
</body> </body>
</html> </html>