Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4166 | Rev 4169 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3495 stevensc 1
@use "../../settings/breakpoints.scss";
2
 
3
.navLinksContainer {
3958 stevensc 4
  flex: 1;
3979 stevensc 5
  order: 3;
3977 stevensc 6
  min-width: 50%;
3979 stevensc 7
  display: flex;
4166 stevensc 8
  ul {
3977 stevensc 9
    display: flex;
3495 stevensc 10
    height: 100%;
11
    align-items: center;
3660 stevensc 12
    gap: 1rem;
3972 stevensc 13
    justify-content: space-around;
3979 stevensc 14
    width: 100%;
4166 stevensc 15
    li {
3495 stevensc 16
      position: relative;
17
      display: flex;
18
      flex-direction: column;
19
      align-items: center;
20
      justify-content: center;
21
      color: $font-color;
22
      padding-top: 12px;
23
      padding-bottom: 12px;
24
      gap: 0.5rem;
25
      font-size: 1.5rem;
3654 stevensc 26
      & > a {
27
        display: flex;
28
        p {
29
          display: none;
3655 stevensc 30
          font-size: 1.1rem;
3654 stevensc 31
        }
3495 stevensc 32
      }
33
      a,
34
      p {
35
        color: $font-color;
36
        flex-direction: column;
37
        align-items: center;
38
        gap: 0.5rem;
4055 stevensc 39
        svg,
40
        i {
3652 stevensc 41
          font-size: 1.5rem;
3495 stevensc 42
        }
43
      }
44
      &:hover {
4166 stevensc 45
        & > a,
46
        & > p {
47
          font-weight: bold;
48
          border-bottom: 2px solid $font-color;
49
        }
50
        .navLinkDropdown,
51
        .aditional_links {
3495 stevensc 52
          display: block;
53
        }
54
      }
55
    }
56
  }
57
}
58
 
59
.navLinkLevelThree {
60
  display: none;
3665 stevensc 61
  position: absolute;
62
  top: -10%;
4161 stevensc 63
  left: 160px;
3665 stevensc 64
  width: 200px;
65
  z-index: 1000;
4164 stevensc 66
}
67
 
68
.aditional_links {
69
  display: none;
70
  position: absolute;
71
  top: calc(100% + 2px);
72
  left: 50%;
73
  transform: translateX(-35%);
74
  width: fit-content;
75
  z-index: 1000;
76
  background-color: $bg-color;
77
  border-radius: 10px;
78
  ul {
79
    display: flex;
80
    flex-direction: column;
81
    padding: 1rem;
82
    gap: 1rem;
83
    background-color: $bg-color;
84
    border-radius: 10px;
85
    box-shadow: 0px 4px 14px -2px rgb(0 0 0 / 12%), 0px -5px 14px -2px rgb(0 0 0 / 12%);
86
    li {
87
      position: relative;
88
      display: flex;
4166 stevensc 89
      justify-content: center;
4164 stevensc 90
      padding: 0 2rem;
91
      a {
92
        font-size: 1.1rem;
4166 stevensc 93
        display: flex;
4164 stevensc 94
      }
95
    }
4161 stevensc 96
  }
3495 stevensc 97
}
98
 
3665 stevensc 99
.navLinkDropdown {
100
  display: none;
101
  position: absolute;
102
  top: calc(100% + 2px);
103
  left: 50%;
104
  transform: translateX(-35%);
105
  width: 200px;
106
  z-index: 1000;
107
  background-color: $bg-color;
108
  border-radius: 10px;
109
  ul {
110
    display: flex;
111
    flex-direction: column;
112
    padding: 1rem;
113
    gap: 1rem;
114
    text-align: left;
115
    background-color: $bg-color;
116
    border-radius: 10px;
117
    box-shadow: 0px 4px 14px -2px rgb(0 0 0 / 12%), 0px -5px 14px -2px rgb(0 0 0 / 12%);
118
    li {
119
      position: relative;
120
      display: flex;
121
      justify-content: space-between;
122
      a {
123
        font-weight: normal;
124
        padding: 0 !important;
125
        font-size: 1.1rem;
126
      }
127
      &:hover {
128
        .navLinkLevelThree {
129
          display: block;
130
        }
131
        & > a,
132
        .navLinkLevelThree ul li:hover a {
133
          font-weight: bold;
134
        }
135
      }
136
    }
137
  }
138
}
139
 
3911 stevensc 140
@include breakpoints.maxwidth("medium") {
4167 stevensc 141
  .navLinksContainer ul li {
4055 stevensc 142
    padding-bottom: 0;
143
    & > a p {
144
      display: inline-flex;
145
    }
146
    &:hover {
147
      font-weight: bold;
148
      border-bottom: 2px solid $font-color;
149
      .navLinkDropdown {
150
        transform: translateX(-50%);
3973 stevensc 151
      }
3495 stevensc 152
    }
4055 stevensc 153
  }
3495 stevensc 154
}
3980 stevensc 155
@include breakpoints.maxwidth("desktop") {
3911 stevensc 156
  .navLinksContainer {
4088 stevensc 157
    margin-left: 4rem;
3975 stevensc 158
    min-width: auto;
3911 stevensc 159
    order: 2;
160
  }
3956 stevensc 161
}