Browse Source

Better responsive color mapping

Signed-off-by: falkTX <falktx@falktx.com>
pull/19/head
falkTX 3 years ago
parent
commit
0e90c36203
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 21 additions and 7 deletions
  1. +21
    -7
      includes/header.php

+ 21
- 7
includes/header.php View File

@@ -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 {
@@ -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;
@@ -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">


Loading…
Cancel
Save