rakkapy/static/theme.css

142 lines
2.4 KiB
CSS
Raw Permalink Normal View History

2021-09-18 21:37:18 +10:00
body
{
/*part3*/
background-color: #9999ff;
margin: 0px;
padding: 0px;
2022-05-31 00:58:14 +10:00
/*Move navbar to the bottom and use flex to reorder it to the top, so it isn't as intrusive without CSS.
Thanks to @heftig:archlinux.org (matrix) for showing me this.*/
2022-05-31 00:58:14 +10:00
display: flex;
flex-direction: column;
2021-09-18 21:37:18 +10:00
}
nav
{
/*Positioning and no-scroll tricks*/
position: sticky;
top: 0px;
/*Stupid fix for a stupid bug*/
left: 0px;
width: 100%;
border: 1px solid;
display: inline-block;
background-color: #9999ff;
2022-05-31 00:58:14 +10:00
order: 1; /*flex thing*/
2021-09-18 21:37:18 +10:00
}
main
{
/*Another stupid fix for another stupid bug.
If you use position:fixed, it just vanishes from its original spot
and there's no standard syntax for telling it to not do this;
to leave a blank space where it was instead.*/
/*Yay, fixed by position:sticky*/
/*margin-top: 40px;*/
/*Hmm: https://www.w3schools.com/cssref/func_attr.asp*/
/* Made in 2 minutes (including login+open) to demonstrate efficiency
vs advanced libraries. Make of that what you will. */
background-color: #cccccc;
width: 80%;
margin-left: auto;
margin-right: auto;
border: 2px solid;
text-align: center;
2022-05-31 00:58:14 +10:00
order: 2; /*flex thing*/
2021-09-18 21:37:18 +10:00
}
main *
{
text-align: center;
}
ul.nav
{
list-style-type: none;
margin: 0;
padding: 0;
}
li.navpiece
{
/* Another stupid fix for YET ANOTHER stupid bug. This is how you vertically align text in an element.*/
max-width:100px;
display:table;
float:left;
position:relative;
}
2022-05-31 00:58:14 +10:00
a.navpiece/*, div.navpiece Apparently this wasn't doing anything either.*/
2021-09-18 21:37:18 +10:00
{
text-decoration-line:none;
display: table-cell;
text-align: center;
vertical-align:middle;
font-size: 16px; /* This wasn't actually doing anything, apparently.*/
padding: 10px;
/*part1*/
color: #0000ff;
background-color: #cccccc;
}
/*a,a:hover
{
style: none;
color: inherit;
text-decoration: none;
}
I might need this again later, but for now, it's okay...*/
a.navpiece:hover
{
/*part2*/
background-color: #0000ff;
color: #cccccc;
}
li.navpiece>div
{
display:none;
position:absolute;
top:100%;
left:0%;
width:100%;
text-align:center;
}
li.navpiece:hover>div
{
display:inline;
}
li.right
{
float:right;
}
h1
{
text-align:center;
}
.foot
{
background-color: #cccccc;
float: right;
margin-left: auto;
2022-05-31 00:58:14 +10:00
margin-right: 0; /* Need to set this for flex thing*/
2021-09-18 21:37:18 +10:00
border: 2px solid;
text-align: center;
2022-05-31 00:58:14 +10:00
order: 3; /*flex thing*/
2022-09-15 14:41:11 +10:00
}
.tick
{
color: #dddddd;
2021-09-18 21:37:18 +10:00
}