HashtagsXRep/hashtagsxrep

View on GitHub
src/main/resources/public/ui/css/main.css

Summary

Maintainability
Test Coverage
html {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #333333;
    text-align: left;
}
body {
    background-image: url(../image/background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-color: #000;
}
a, a:visited {
    text-decoration: none;
    color: white;
}
a:focus, a:hover {
    color: lightgray;
}
li {
    list-style: none;
    margin-bottom: unset;
}
header {
}
footer {
    background-color: #000000ab;
    color: lightgray;
    font-size: 70%;
}
span {
    display: inline;
}
select {
    border-color: #bbb;
    background-color: #fbfbfb;
    font-weight: 100;
    font-size: medium;
    min-height: 38px;
    height: 38px;
    padding: 6px 10px;
    border: 1px solid #D1D1D1;
    border-radius: 4px;
    box-shadow: none;
    box-sizing: border-box;
    width: 100%;
}
select:focus {
    border-color: black;
}
.flex-container {
    height: 100%;
    padding: 0;
    margin: 0;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.no-mobile {
    display: none;
}
.button.button-primary {
    min-width: 220px;
    background-color: black;
    border-color: black;
}
.button.button-primary:focus, .button.button-primary:hover, button.button-primary:focus, button.button-primary:hover, input[type=button].button-primary:focus, input[type=button].button-primary:hover, input[type=reset].button-primary:focus, input[type=reset].button-primary:hover, input[type=submit].button-primary:focus, input[type=submit].button-primary:hover {
    background-color: #555;
    border-color: black;
}
.button svg {
    font-size: 2rem;
    position: relative;
    top: .2rem;
    left: -.2rem;
    float: left;
}
.button.button-ht {
    text-transform: none;
    letter-spacing: unset;
    background-color: black;
    border-color: black;
    color: white;
}
.button.button-ht:focus, .button.button-ht:hover, button.button-ht:focus {
    background-color: #555;
    border-color: black;
}
.button-ht {
    min-width: 250px;
    font-size: .9rem;
}
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.center { text-align: center; }
.left { text-align: left; }
.right { text-align: right; }
.ml25 { margin-left: 25%; }
.ml5 { margin-left: 5%; }
.mr25 { margin-right: 25%; }
.mr5 { margin-right: 5%; }
.mb20 { margin-bottom: 20px; }
.mt15 { margin-top: 15px; }
.mt20 { margin-top: 20px; }
.ml20 { margin-left: 20px; }
.m-auto {
    margin-left: auto;
    margin-right: auto;
}
.fsS {
    font-size: .8rem;
}

input[type='checkbox'].toggle {
  display: none;
}
.error {
    font-size: .9rem;
    text-align: left;
    margin: -25px 0px 20px 10px;
    padding: 5px;
    background-color: #ffd9d9;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.lbl-toggle {
  display: block;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.25s ease-out;
  background-color: black;
  color: white;
  font-size: .8rem;
  margin-left: 10px;
  margin-right: 10px;
}
.lbl-toggle:hover {

}
.lbl-toggle::before {
  content: ' ';
  display: inline-block;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid currentColor;
  vertical-align: middle;
  margin-right: .7rem;
  transform: translateY(-2px);
  transition: transform .2s ease-out;
}
.collapsible-content {
  max-height: 0px;
  overflow: hidden;
  transition: max-height .25s ease-in-out;
}
.toggle:checked + .lbl-toggle + .collapsible-content {
  max-height: 1200px;
}
.toggle:checked + .lbl-toggle::before {
  transform: rotate(90deg) translateX(-3px);
}
.toggle:checked + .lbl-toggle {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.ht-menu-wrapper {
  width: 100%;
  position: fixed;
  top: 0;
  right: 0px;
}
.ht-lbl-menu {
  display: block;
  text-align: right;
  padding: .5rem;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.25s ease-out;
  background-color: #000000ab;
  color: white;
  font-size: 1.2rem;
  margin: 5px;
}
.ht-collapsible-menu {
  max-height: 0px;
  overflow: hidden;
  transition: max-height .25s ease-in-out;
  background-color: #fffffff5;
  border-radius: 10px;
  text-align: center;
  margin-left: 10px;
  margin-right: 10px;
}
.toggle:checked + .ht-lbl-menu + .ht-collapsible-menu {
  max-height: 1200px;
  min-height: 450px;
  height: 80vh;
}
.ht-lbl-menu .fa-bars,.fa-window-close {
    font-size: larger;
}
.ht-lbl-menu .fa-bars {
    display: inline-block;
}
.ht-lbl-menu .fa-window-close {
    display: none;
}
.toggle:checked + .ht-lbl-menu .fa-bars {
  display: none;
}
.toggle:checked + .ht-lbl-menu .fa-window-close {
  display: inline-block;
}
.ht-menu {
    margin-top: 40px;
}
.text-in {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 50%;
    height: 45%;
    margin-top: auto;
    margin-bottom: auto;
    line-height: 0;
    white-space: nowrap;
}
.ht-box {
    background-color: white;
    border-radius: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 10px;
}
.ht-form {
    padding: 5px 20px 5px 20px;
    margin-top: 10px;
    margin-bottom: 1rem;
}
.ht-form input, textarea {
    border-color: #bbb;
    background-color: #fbfbfb;
    font-weight: 100;
    font-size: medium;
    min-height: 38px;
    height: 38px;
    padding: 6px 10px;
    border: 1px solid #D1D1D1;
    border-radius: 4px;
    box-shadow: none;
    box-sizing: border-box;
}
.ht-form textarea {
    min-height: 160px;
}
.ht-form input:focus {
    border-color: black;
    outline: black auto 0px;
}
.ht-form textarea:focus {
    border-color: black;
    outline: black auto 0px;
}
.ht-submit-row {
    text-align: right;
}
.ht-form label {
    text-align: left;
    font-size: .7rem;
    margin-bottom: 0px;
    font-style: italic;
}
.ht-tip {
    font-size: 0.85rem;
    font-style: italic;
    color: gray;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.ht-tip a {
    color: black;
}
.ht-header {
    margin-top: 60px;
    min-height: 50px;
    position: relative;
}
.ht-block {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    padding: 5px 10px 5px 10px;
    border-radius: 10px;
}
.ht-white-block {
    background-color: #ffffffee;
}
.ht-entry-block {
    max-width: 300px;
}
.ht-up {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 20px;
    color: black;
    font-size: 2rem;
}
.ht-up-img {
}
.ht-up-img img {
    border-radius: 25px;
}
.ht-title {
    margin-left: 70px;
    color: black;
    font-weight: 600;
}
.ht-info {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 90%;
}
.ht-message {
    padding: 20px;
    font-size: 90%;
    line-height: 1.2;
    max-width: 400px;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    background-color: #e2e2e2;
    font-weight: bold;
    border-radius: 10px;
}
.ht-txt-big {
    font-size: 25px;
}
.ht-delete {
    background-color: white;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 10px;
}
.ht-delete .lbl-toggle {
    margin: 0px;
}
.ht-active .button {
    background-color: #83ff92;
    color: black;
}
.ht-active .button:hover {
    background-color: #32a740;
}
.ht-monitors {
    padding-top: 15px;
    padding-bottom: 10px;
}
.ht-monitor {
    margin-left: 10px;
    margin-right: 10px;
}
.ht-polls {
    padding-top: 15px;
    padding-bottom: 10px;
}
.ht-poll {
    margin-left: 10px;
    margin-right: 10px;
}
.ht-resume {
    font-size: 1.1rem;
    padding-bottom: 10px;
}
.ht-result-box {
    text-align: left;
    background-color: white;
    border-radius: 20px;
    padding-bottom: 10px;
}
.ht-result-box:nth-child(even) div {
    background-color: #eaeaea;
}
.ht-result-box.highlight {
    padding-bottom: 0px;
}
header.ht-result-box.highlight {
    margin-bottom: 0px;
}
header.ht-result {
    font-weight: bold;
    background-color: black;
    border-radius: 20px;
    color: white;
    text-align: center;
    margin-bottom: 10px;
}
.ht-result {
    padding-left: 15px;
    padding-right: 5px;
}
div.ht-result:nth-child(odd) {
    background-color: #fbfbfb;
}
.ht-poll-clocks {
    font-size: 50%;
    text-align: center;
    padding-left: 10px;
    padding-right: 5px;
}
.ht-poll-clocks-data {
    display: inline-block;
}
.ht-poll-clocks-mark {
    margin-top: 5px;
    font-weight: bold;
}
.ht-poll-clocks-data footer {
    background-color: unset;
    color: unset;
    font-size: 90%;
    margin-top: 5px;
    margin-bottom: 10px;
}
.ht-proposal {
    font-size: 60%;
    margin: 25px 0px 10px 0px;
    padding-bottom: 10px;
    background-color: #fafafa;
    border-radius: 20px;
    border-style: solid;
    border-width: 3px;
}
.ht-proposal-cancelled {
    background-color: #ffc8c8;
}
.ht-proposal-cancelled .ht-vote-info {
    background-color: #ffc8c8;
}
.ht-proposal header {
    font-weight: bold;
    background-color: black;
    color: white;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.ht-proposal footer {
    text-align: right;
    background-color: unset;
    font-size: unset;
    color: unset;
    height: 38px;
}
.ht-proposal button {
    padding: 5px;
    height: 28px;
    line-height: unset;
    background-color: white;
    margin-right: 20px;
}
.ht-proposal-action {
    float: right;
}
.ht-proposal-subject {
    line-height: 1.2;
    background-color: white;
    margin-left: 20px;
    margin-right: 20px;
    padding: 10px;
    margin-top: 40px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: break-word;
}
.ht-proposal-cancel-reason {
    line-height: 1.2;
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px 0px 0px 0px;
    margin-top: 20px;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: unset;
}
.ht-proposal-wbox {
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 10px;
    border-radius: 20px;
}
.ht-proposal-wbox.winner {
    background-color: #ceffce;
}
.ht-proposal-wbox.others {
    background-color: #ececec;
}
.ht-proposal-wbox header {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 90%;
    font-weight: bold;
}
.ht-proposal-wbox .ht-proposal {
    margin-left: 10px;
    margin-right: 10px;
}
.ht-vote-info {
    display: inline-block;
    padding: 5px;
    background-color: white;
    color: black;
    float: right;
    margin-right: 20px;
    font-size: 90%;
}
.ht-moderate-proposed {
    margin-top: 80px;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #e2e2e2;
    border-radius: 20px;
}
header.ht-user-rank {
    background-color: black;
    border-radius: 15px;
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-size: 90%;
}
.ht-ranking {
    display: table;
    background-color: #212121;
    font-size: 5vw;
    max-width: 400px;
    min-width: 250px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
}
.ht-ranking header {
    color: white;
    display: table-caption;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    background-color: black;
    font-weight: bold;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.ht-score {
    display: table-row;
}
.ht-score .nickname {
    display: table-cell;
    text-align: left;
    padding-left: 10px;
    padding-right: 5px;
}
.ht-score .score {
    display: table-cell;
    text-align: right;
    color: #ffffdb;
}
.ht-score .rank {
    display: table-cell;
    text-align: center;
    color: #ffffdb;
    font-size: 85%;
}
.ht-score .hashtag {
    font-size: 80%;
}
.ht-score .quantity {
    color: #ffffdb;
}
.ht-score .type {
    display: table-cell;
    text-align: left;
    color: white;
    padding-left: 10px;
}
.ht-score.table-header div {
    display: table-cell;
    background-color: black;
    color: white;
    font-weight: bold;
}
.ht-invite-container {
    height: 100%;
    padding: 0;
    margin: 0;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: stretch;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
.ht-invite {
    margin: 20px 10px 5px 10px;
    background-color: #212121;
    font-size: 70%;
    min-height: 200px;
    border-radius: 20px;
    padding: 10px 10px 15px 10px;
    min-width: 260px;
}
.ht-invite header {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 5px;
    font-weight: bold;
    font-size: 90%;
}
.ht-invite-list {
    text-align: left;
    margin-left: 10px;
}
.ht-ok {
}
.ht-footer {
    text-align: center;
    margin-top: 20px;
}
.ht-footer p {
    margin: 2px;
}

.ht-news-content {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.ht-news-item {
    display: none;
    -webkit-animation-name: ht-news-fade;
    -webkit-animation-duration: 1.5s;
    animation-name: ht-news-fade;
    animation-duration: 1.5s;
}
@-webkit-keyframes ht-news-fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes ht-news-fade {
  from {opacity: .4}
  to {opacity: 1}
}
.ht-news-title {
    font-size: 1.2rem;
    font-weight: bold;
}
.ht-news-description {
    height: 200px;
    background-color: #000000a6;
    position: relative;
    color: white;
    padding: 40px 20px 10px 20px;
    font-size: 1.3rem;
}
.ht-news-image {
    min-height: 250px;
    width: 100%;
    background-repeat: round;
}
.ht-news-link {
    position: relative;
    bottom: 38px;
    text-align: right;
    margin-right: 10px;
}
.about-text {
    font-size: medium;
    padding-left: 10px;
    padding-right: 10px;
}
.about-text a {
    color: red;
}
.italic {
    font-style: italic;
}
/* Larger than mobile */
@media (min-width: 400px) {
    .ht-poll-clocks {
        font-size: 60%;
    }
    .ht-ranking {
        font-size: 4.5vw;
    }
}

/* Larger than phablet */
@media (min-width: 550px) {
    .no-mobile {
        display: unset;
    }
    .ht-footer-l p {
        text-align: left;
        margin-left: 25%;
    }
    .ht-footer-r p {
        text-align: right;
        margin-right: 25%;
    }
    .ht-ranking {
        font-size: 1.3rem;
    }
    .ht-message {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Larger than tablet */
@media (min-width: 750px) {}

/* Larger than desktop */
@media (min-width: 1000px) {
}

/* Larger than Desktop HD */
@media (min-width: 1200px) {}