edh-elo/app/static/css/base.css
2024-08-07 22:26:39 -07:00

165 lines
2.3 KiB
CSS

body {
margin: 0;
font-family: sans-serif;
}
#header {
background-color: #0080ff;
min-height: 40px;
width: 100%;
color: #ddd;
text-shadow: 2px 2px #555;
}
#header div {
float: left
}
#header a {
color: inherit;
text-decoration: none;
-moz-transition: all .2s ease-in;
-o-transition: all .2s ease-in;
-webkit-transition: all .2s ease-in;
transition: all .2s ease-in;
}
#header a {
/* margin: 0; */
line-height: 40px;
}
#header a:hover {
color: #00c;
}
#header #header_main_anchor {
min-height: 40px;
width: 100px;
padding: 0px 20px;
text-align: center;
}
#header #topbar {
margin-left: 20px;
}
.topbar_item {
margin: 0px 10px;
float: none !important;
display: inline;
position: relative; /* Necessary in order for dropdowns to be contained within them */
}
/* https://www.freecodecamp.org/news/how-to-build-a-dropdown-menu-with-javascript/*/
.topbar_dropdown_button {
cursor: pointer;
}
.topbar_dropdown {
visibility: hidden;
opacity: 0;
position: absolute;
top: 20px;
left: 0px;
}
.topbar_dropdown.show {
transform: translateY(0rem);
visibility: visible;
opacity: 1;
}
.topbar_dropdown a {
background-color: #0080ff;
display: block;
padding: 4px;
}
.topbar_dropdown a:last-child {
border-radius: 0px 0px 10px 10px;
}
#header div#create_game_button {
float: right;
margin-right: 15px;
}
a#create_game_link {
display:block;
text-shadow: none;
color: #222;
background-color: lightgreen;
height: 25px;
line-height: 27px;
margin-top: 5px;
padding: 2px 10px;
border-radius: 10px;
}
/*
* Main content
*/
#content {
margin: 16px;
}
/*
* Tables
*/
th {
background-color: #0080ff;
}
th.active {
background-color: #0007ee;
color: grey;
}
th.asc::after {
content: "^"
}
th.desc::after {
content: "V"
}
/*
* Footer
*/
footer {
position: fixed;
left: 0;
bottom: 0;
height: 40px;
line-height: 40px;
width: 100%;
background-color: #0007ee;
color: lightgrey;
text-align: center;
}
footer a {
color: lightgrey;
}
footer #about {
float: left;
margin-left: 10px;
}
footer #credits {
float: right;
margin-right: 10px;
}
/*
* Clearfix
*/
.clearfix::after {
content: "";
clear: both;
display: table;
}