add mono css framework, add some boiler plate, get started on responsive design fixes
This commit is contained in:
9
extra/css/LICENSE.md
Normal file
9
extra/css/LICENSE.md
Normal file
@@ -0,0 +1,9 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2022-present Artyom Arutyunyan
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,5 +1,16 @@
|
||||
/* Copied from the origin (https://github.com/artalar/mono) for fast interaction and fixing. Reatom docs is a good playground form mono. */
|
||||
|
||||
:root {
|
||||
--mono-main: #10a040;
|
||||
--mono-back: #000000;
|
||||
/* --mono-accent: #007acc;
|
||||
--mono-muted: #666666;
|
||||
--mono-border: #cccccc;
|
||||
--mono-success: #28a745;
|
||||
--mono-warning: #ffc107;
|
||||
--mono-error: #dc3545; */
|
||||
}
|
||||
|
||||
.mono-all,
|
||||
.mono,
|
||||
.mono-all *,
|
||||
@@ -23,7 +34,6 @@
|
||||
color: var(--mono-back);
|
||||
background-color: var(--mono-main);
|
||||
}
|
||||
|
||||
a.mono,
|
||||
.mono-all a {
|
||||
position: relative;
|
||||
@@ -87,7 +97,7 @@ body.mono-all,
|
||||
.mono-all body {
|
||||
margin: 0;
|
||||
position: relative;
|
||||
min-width: min(calc(100vw + 20rem), 85rem);
|
||||
/* min-width: min(calc(100vw + 20rem), 85rem); */
|
||||
scroll-snap-type: x mandatory;
|
||||
display: flex;
|
||||
}
|
||||
@@ -98,6 +108,7 @@ main.mono,
|
||||
margin: auto;
|
||||
width: min(100vw, 65rem);
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
@@ -107,6 +118,7 @@ aside.mono,
|
||||
position: sticky;
|
||||
top: 0;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
width: 20rem;
|
||||
min-width: 20rem;
|
59
extra/css/responsive.css
Normal file
59
extra/css/responsive.css
Normal file
@@ -0,0 +1,59 @@
|
||||
/* responsive.css - Simple flexbox layout for the Mono theme */
|
||||
|
||||
/* Base flexbox layout */
|
||||
body.mono-all {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* Main content area takes up remaining space */
|
||||
main {
|
||||
flex: 1;
|
||||
padding: 2rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
/* Sidebar with fixed width */
|
||||
aside {
|
||||
width: 250px;
|
||||
min-width: 250px;
|
||||
padding: 2rem 1rem;
|
||||
border-right: 2px solid var(--mono-main);
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/* Make footer stick to bottom of main content */
|
||||
footer {
|
||||
margin-top: auto;
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
/* Mobile layout adjustments */
|
||||
@media (max-width: 768px) {
|
||||
body.mono-all {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
aside {
|
||||
display: none; /* Hide sidebar on mobile */
|
||||
}
|
||||
|
||||
main {
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Simple print styles */
|
||||
@media print {
|
||||
aside {
|
||||
display: none;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user