add boxes and sidebars
This commit is contained in:
parent
2f727c0810
commit
656158f5da
5 changed files with 149 additions and 10 deletions
29
example.html
29
example.html
|
@ -11,10 +11,29 @@
|
|||
<div class="header">
|
||||
Hello yaru!
|
||||
</div>
|
||||
<h1>Hello yaru!</h1>
|
||||
<h2>Hello yaru!</h2>
|
||||
<h3>Hello yaru!</h3>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
<button>Test</button>
|
||||
<div class="box">
|
||||
<div class="sidebar">
|
||||
<button class="sb_button">lorem ipsum</button>
|
||||
<button class="sb_button">dolor sit amet</button>
|
||||
</div>
|
||||
<div class="box-content-1">
|
||||
<div class="box-v">
|
||||
<div class="box-content-1">
|
||||
<h1>Hello yaru!</h1>
|
||||
<h2>Hello yaru!</h2>
|
||||
<h3>Hello yaru!</h3>
|
||||
<p>yaru.css is a css library attempting to recreate the Ubuntu Yaru style in a web format. it also works as it's own implementation of something like bootstrap with built in GTK style elements like Boxes and Popovers. This is a simple test page showing the different elements.</p>
|
||||
<button>Test</button>
|
||||
</div>
|
||||
<div class="box-content-1">
|
||||
<h1>Hello again yaru!</h1>
|
||||
<h2>Hello again yaru!</h2>
|
||||
<h3>Hello again yaru!</h3>
|
||||
<p>You may have noticed this is a different item. yaru.css has the "box-v" div class for stacking different "box-content-1"s ontop of eachother, as long as the box-v is wrapped inside a box-content-1 of it's own.</p>
|
||||
<button>Test again</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -11,10 +11,18 @@
|
|||
<div class="header">
|
||||
Hello yaru!
|
||||
</div>
|
||||
<h1>Hello yaru!</h1>
|
||||
<h2>Hello yaru!</h2>
|
||||
<h3>Hello yaru!</h3>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
<button>Test</button>
|
||||
<div class="box">
|
||||
<div class="sidebar">
|
||||
<button class="sb_button">lorem ipsum</button>
|
||||
<button class="sb_button">dolor sit amet</button>
|
||||
</div>
|
||||
<div class="box-content-1">
|
||||
<h1>Hello yaru!</h1>
|
||||
<h2>Hello yaru!</h2>
|
||||
<h3>Hello yaru!</h3>
|
||||
<p>yaru.css is a css library attempting to recreate the Ubuntu Yaru style in a web format. it also works as it's own implementation of something like bootstrap with built in GTK style elements like Boxes and Popovers. This is a simple test page showing the different elements.</p>
|
||||
<button>Test</button>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -61,3 +61,53 @@ button:hover {
|
|||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
width: 200px;
|
||||
height: 100%;
|
||||
background-color: $sidebar_bg_color;
|
||||
color: $text_color;
|
||||
border-radius: 0 20px 20px 0;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.sb_button {
|
||||
min-height: 48px;
|
||||
width: 185px;
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
border: 0px solid;
|
||||
border-radius: 6px;
|
||||
border-spacing: 6px;
|
||||
transition: all 200ms ease-out;
|
||||
background-color: $base_color;
|
||||
color: $text_color;
|
||||
};
|
||||
|
||||
.sb_button:hover {
|
||||
min-height: 48px;
|
||||
width: 185px;
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
border: 0px solid;
|
||||
border-radius: 6px;
|
||||
border-spacing: 6px;
|
||||
transition: all 200ms ease-out;
|
||||
background-color: $menu_selected_color;
|
||||
color: $text_color;
|
||||
};
|
||||
|
||||
.box {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
};
|
||||
|
||||
.box-content-1 {
|
||||
flex: 1;
|
||||
padding: 20px;
|
||||
background-color: $bg_color;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
@import 'colors-light';
|
||||
@import 'font';
|
||||
@import 'palette';
|
||||
|
||||
$variant: 'light';
|
||||
|
||||
|
@ -61,3 +62,64 @@ button:hover {
|
|||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
width: 200px;
|
||||
height: 100%;
|
||||
background-color: $porcelain;
|
||||
color: $text_color;
|
||||
border-radius: 0 20px 20px 0;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.sb_button {
|
||||
min-height: 48px;
|
||||
width: 185px;
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
border: 0px solid;
|
||||
border-radius: 6px;
|
||||
border-spacing: 6px;
|
||||
transition: all 200ms ease-out;
|
||||
background-color: $base_color;
|
||||
color: $text_color;
|
||||
};
|
||||
|
||||
.sb_button:hover {
|
||||
min-height: 48px;
|
||||
width: 185px;
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
border: 0px solid;
|
||||
border-radius: 6px;
|
||||
border-spacing: 6px;
|
||||
transition: all 200ms ease-out;
|
||||
background-color: $menu_selected_color;
|
||||
color: $text_color;
|
||||
};
|
||||
|
||||
.box {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
};
|
||||
|
||||
.box-content-1 {
|
||||
flex: 1;
|
||||
padding: 20px;
|
||||
background-color: $bg_color;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.box-v {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
align-items: flex-start;
|
||||
padding: 20px;
|
||||
background-color: $bg_color;
|
||||
max-width: 400px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue