Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4161 | Rev 4164 | 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;
3495 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%;
3495 stevensc 15
    &__li {
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 {
45
        font-weight: bold;
46
        border-bottom: 2px solid $font-color;
47
        .navLinkDropdown {
48
          display: block;
49
        }
50
      }
51
    }
52
  }
53
}
54
 
55
.navLinkLevelThree {
56
  display: none;
3665 stevensc 57
  position: absolute;
58
  top: -10%;
4161 stevensc 59
  left: 160px;
3665 stevensc 60
  width: 200px;
61
  z-index: 1000;
4162 stevensc 62
  & > ul {
4161 stevensc 63
    max-height: 25vh;
64
    overflow: scroll;
65
  }
3495 stevensc 66
}
67
 
3665 stevensc 68
.navLinkDropdown {
69
  display: none;
70
  position: absolute;
71
  top: calc(100% + 2px);
72
  left: 50%;
73
  transform: translateX(-35%);
74
  width: 200px;
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
    text-align: left;
84
    background-color: $bg-color;
85
    border-radius: 10px;
86
    box-shadow: 0px 4px 14px -2px rgb(0 0 0 / 12%), 0px -5px 14px -2px rgb(0 0 0 / 12%);
87
    li {
88
      position: relative;
89
      display: flex;
90
      justify-content: space-between;
91
      a {
92
        font-weight: normal;
93
        padding: 0 !important;
94
        font-size: 1.1rem;
95
      }
96
      &:hover {
97
        .navLinkLevelThree {
98
          display: block;
99
        }
100
        & > a,
101
        .navLinkLevelThree ul li:hover a {
102
          font-weight: bold;
103
        }
104
      }
105
    }
106
  }
107
}
108
 
3911 stevensc 109
@include breakpoints.maxwidth("medium") {
3979 stevensc 110
  .navLinksContainer__ul__li {
4055 stevensc 111
    padding-bottom: 0;
112
    & > a p {
113
      display: inline-flex;
114
    }
115
    &:hover {
116
      font-weight: bold;
117
      border-bottom: 2px solid $font-color;
118
      .navLinkDropdown {
119
        transform: translateX(-50%);
3973 stevensc 120
      }
3495 stevensc 121
    }
4055 stevensc 122
  }
3495 stevensc 123
}
3980 stevensc 124
@include breakpoints.maxwidth("desktop") {
3911 stevensc 125
  .navLinksContainer {
4088 stevensc 126
    margin-left: 4rem;
3975 stevensc 127
    min-width: auto;
3911 stevensc 128
    order: 2;
129
  }
3956 stevensc 130
}