Skip to content

Commit

Permalink
Better responsive color mapping
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Aug 6, 2021
1 parent 57c502f commit 0e90c36
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions includes/header.php
Expand Up @@ -59,16 +59,10 @@ function isMobile() {
<?php if ($PAGE_TYPE == "BOARD") { ?>
<!-- Special Board CSS -->
<style type="text/css">
.omega {
position: relative;
}
#board-colors {
float: right;
display: flex;
flex-direction: row;
position: absolute;
top: 0px;
right: 0px;
margin-bottom: 20px;
}
#board-colors p,
#board-colors ul {
Expand All @@ -80,8 +74,12 @@ function isMobile() {
#board-colors span {
margin: auto;
}
#board-colors p {
margin-left: 8px;
}
#board-colors ul {
display: inline-flex;
flex: 1;
list-style: none inside;
margin-right: 8px;
overflow: hidden;
Expand All @@ -96,6 +94,22 @@ function isMobile() {
height: 16px;
margin: 4px;
}
@media only screen and (max-width: 1000px) {
#board-colors p {
display: none;
}
}
@media only screen and (min-width: 1200px) {
.omega {
position: relative;
}
#board-colors {
position: absolute;
top: 0px;
right: 0px;
margin-bottom: 0px;
}
}
</style>
<?php } else if ($PAGE_TYPE == "DONATIONS") { ?>
<style type="text/css">
Expand Down

0 comments on commit 0e90c36

Please sign in to comment.