summaryrefslogtreecommitdiff
path: root/WebInterface/NodeJSServer/src/style/partials/front-layer/_server-listing.scss
blob: 7e67178dac8b69d464ba5852c670275c9e75aa63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
@import '../colors';

.front-layer {
  .server-listing {
    box-sizing: border-box;
    background-color: $primary;
    color: $primary-text;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-style: none;
    border-radius: 8px;
    margin: 1rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    padding-top: 0.25rem;
    box-shadow: 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12), 0 5px 5px -3px rgba(0, 0, 0, .2);
    h1 {
      text-align: center;
      @media (max-height: 550px) {
        display: none;
      }
    }
    hr {
      width: 100%;
      @media (max-height: 550px) {
        display: none;
      }
    }

    @media (max-height: 450px) {
      padding-bottom: 0.125rem
    }

    .server-entries {
      overflow-y: auto;
      min-height: 0;

      .server {
        font-size: 1.25rem;
        display: flex;
        flex-direction: row;

        @media (max-width: 1000px) {
          flex-wrap: wrap;
        }

        align-items: center;
        background-color: $primary-light;
        padding: 0.5rem;
        margin-bottom: 0.25rem;
        border-style: none;
        border-radius: 8px;

        .server-name {
          font-weight: bold;
          letter-spacing: 0.125rem;
          white-space: nowrap;
          overflow: hidden;
          margin: 0.5rem 0;
        }

        .right-aligned-items {
          margin-left: auto;
          white-space: nowrap;
          display: flex;
          align-items: center;

          .player-count-dot {
            background-color: $online-green;
            border-radius: 50%;
            min-width: 1rem;
            min-height: 1rem;
            width: 1rem;
            height: 1rem;
            margin-right: 0.25rem;
          }

          .player-count {
            font-family: 'Roboto Condensed', sans-serif;
          }

          .player-count-static {
            @media (max-width: 1000px) {
              display: none;
            }

            white-space: nowrap;
            margin-left: 0.25rem;
            letter-spacing: 0;
            font-family: 'Roboto Condensed', sans-serif;
          }

          .join-btn {
            margin-left: 0.5rem;
            min-width: 12rem;
          }
        }
      }
    }

    .button-container {
      display: flex;
      flex-direction: row-reverse;
      margin-top: 1rem;
      margin-right: 0.25rem;
      min-height: 2.5rem;

      @media (max-height: 450px) {
        margin-top: 0.125rem;
        min-height: 2rem;
      }

      .btn {
        @media (max-width: 450px) {
          letter-spacing: 0;
        }
      }
    }
  }
}