_header.scss 3.51 KB
Newer Older
1
2
3
4
5
6
7
#site-header {
  background: $COLOR_BACKGROUND_HEADER;
  height: 93px;
  margin-top: -15px;
  margin-bottom: 37px;

  #site-header-wrapper {
8
9
    ul {
      @media only screen and (max-width: $HEADER_RESPONSIVENESS_THRESHOLD) {
10
11
        padding-inline-start: 5px;
      }
12
      @media only screen and (min-width: $HEADER_RESPONSIVENESS_THRESHOLD) {
13
        padding-inline-start: 265px;
14
      }
15
16
17
18
19
20
    }

    .elixir-image {
      position: relative;
      top: 26px;
      float: left;
Jacek Lebioda's avatar
Jacek Lebioda committed
21
22
      width: 220px;
      margin-right: 20px;
23
24
25
26
27
28
29
30
31
32
33
34
35

      img {
        width: 150px;
        padding-left: 10px;
      }
    }

    .hamburger {
      background: none;

      input {
        display: none;
      }
Jacek Lebioda's avatar
Jacek Lebioda committed
36
      @media only screen and (max-width: $HEADER_RESPONSIVENESS_THRESHOLD) {
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
        width: 50px;
        height: 50px;
        border: solid 2px #e6e6e6;
        border-radius: 12px;
        float: right;
        position: relative;
        top: 30px;
        right: 20px;
        z-index: 1;
        background-color: #023452;
        background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAALEQAACxEBf2RfkQAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMS40E0BoxAAAAbNJREFUeF7t1rFOw0AQhOHUUBJK8uAI8Q4g3oUU8BTQm7nIlqz1P0qFc6u9kT7JN01uE8XawzRNpWFZCZaVYFkJlpVgWQmWlWBZCZaVYOlkC80QYelkC80QYelkC80QYelkC80QYelkC80QYelkC80QYelkC80QYelkC80QYemso/NRnuVTvm7sLC9ynK93ic5XYeks0fOdvEtvaXe6n6+5uT/B0lmi5yf5kd7yK6f5mpv7EyydJXpuX0D7sN7SfpRdvoBe/wJv8v9/gRad20uwvXjaC+j7xtod2gv5Yb7eJTpfhaWTLTRDhKWTLTRDhKWTLTRDhKWTLTRDhKWTLTRDhKWzjs6P8irtDUzr6Z5usgp/SG/ZbRU+SY+b4FiFZazC8zU39ydYOuvoPFbh3kMzRFg62UIzRFg62UIzRFg62UIzRFg62UIzRFg66+g8VmHpLWMVlrEKz9fc3J9g6SzR81iFdR6rcO+hGSIsnWyhGSIsnWyhGSIsnWyhGSIsnWyhGSIsnWyhGSIsnWyhGSIsnWyhGSIsK8GyEiwrwbISLCvBshIsK8GyEiwrwbISLOuYDn8dSvgjYpq2oAAAAABJRU5ErkJggg==");
        background-size: contain;

        input {
          opacity: 0;
          display: block;
          width: 50px;
          height: 50px;
          margin: 0;
          z-index: 10;
          cursor: pointer;
          -webkit-touch-callout: none;
        }

        input ~ ul {
          display: none;
          height: 0;
        }

        input:checked ~ ul {
          display: block;
          float: left;
          background-color: #023452;
          width: 150px;
          position: relative;
          left: -88px;
          top: -6px;
          padding-bottom: 9px;
          height: auto;
          padding-right: 5px;

          li {
            display: contents;
          }
        }
      }
    }

    ul {
      margin-left: 0;
      position: relative;
      top: 66px;

      li {
        list-style: none;
        float: left;
        margin: 0;
        padding: 0;

        a {
          display: block;
          white-space: nowrap;
Jacek Lebioda's avatar
Jacek Lebioda committed
99
          @media only screen and (max-width: $HEADER_RESPONSIVENESS_THRESHOLD) {
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
            padding: 12px 16px;
          }
          padding: 5px 16px;
          margin-left: 0;
          color: #fefefe;
          text-transform: uppercase;
          font-size: 0.875rem;
          text-decoration: none;
        }

        a.active {
          border-radius: 5px 5px 0 0;
          color: #fefefe;
          background: $COLOR_LINK_ELIXIR;
        }

        a.active:hover {
          color: #222;
          background: #d46d11;
          transition: color 0.25s;
        }

        a:hover {
          color: $COLOR_LINK_ELIXIR;
          border-color: $COLOR_LINK_ELIXIR;
          text-decoration: none;
          transition: color 0.25s, background 0.25s;
        }
      }
    }
  }
}