@open-rlb/ng-bootstrap 3.1.9 → 3.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,7 @@
32
32
  }
33
33
 
34
34
  .modal-backdrop {
35
- z-index: 1002 !important;
35
+ z-index: 1050 !important;
36
36
  }
37
37
 
38
38
  .dropdown-toggle::after {
@@ -87,7 +87,7 @@ rlb-sidebar {
87
87
  right: 1rem;
88
88
  top: 50%;
89
89
  display: block;
90
- font-size: 1rem;
90
+ font-size: 1.2rem;
91
91
 
92
92
  // smoothly animate the transform
93
93
  transition: transform 0.3s ease-in-out;
@@ -104,27 +104,42 @@ rlb-sidebar {
104
104
  ul {
105
105
  li {
106
106
  a {
107
- display: block;
108
- padding: .625rem 1.5rem;
107
+ display: flex;
108
+ align-items: center;
109
+ padding: var(--rlb-item-padding-y) var(--rlb-item-padding-x);
109
110
  color: var(--rlb-menu-item-color);
110
111
  position: relative;
111
- font-size: 13px;
112
+ font-size: 0.95rem;
112
113
  transition: all .4s;
113
114
 
114
115
  margin: 0.1rem 0.3rem;
115
- border-radius: 0.4rem;
116
+ border-radius: $border-radius;
117
+
118
+ .menu-text {
119
+ flex-grow: 1;
120
+ white-space: nowrap;
121
+ overflow: hidden;
122
+ text-overflow: ellipsis;
123
+ margin-right: 0.5rem;
124
+ }
116
125
 
117
126
  i {
127
+ flex-shrink: 0;
118
128
  display: inline-block;
119
129
  min-width: 1.75rem;
120
130
  padding-bottom: .125em;
121
- font-size: 1.15rem;
131
+ font-size: 1.25rem;
122
132
  line-height: 1.40625rem;
123
133
  vertical-align: middle;
124
134
  color: inherit;
125
135
  transition: all .4s;
126
136
  }
127
137
 
138
+ .badge {
139
+ flex-shrink: 0;
140
+ margin-left: auto;
141
+ }
142
+
128
143
  &:hover {
129
144
  color: var(--rlb-menu-item-hover-color);
130
145
  //background-color: rgba(255,255,255, 0.05);
@@ -135,6 +150,10 @@ rlb-sidebar {
135
150
  }
136
151
  }
137
152
 
153
+ .has-arrow span {
154
+ margin-right: 1rem;
155
+ }
156
+
138
157
  .active,
139
158
  &.mm-active > a {
140
159
  color: var(--rlb-menu-item-active-color) !important;
@@ -176,8 +195,8 @@ rlb-sidebar {
176
195
  padding: 0;
177
196
  li {
178
197
  a {
179
- padding: .4rem 1.5rem .4rem 2.5rem;
180
- font-size: 13px;
198
+ padding: 0.4rem 1.5rem 0.4rem 3.75rem;
199
+ font-size: 0.8125rem;
181
200
  }
182
201
  }
183
202
  }
@@ -240,11 +259,11 @@ rlb-sidebar {
240
259
  }
241
260
 
242
261
  .menu-title {
243
- padding: 12px 20px !important;
262
+ padding: 0.75rem 1.5rem !important;
244
263
  letter-spacing: .05em;
245
264
  pointer-events: none;
246
265
  cursor: default;
247
- font-size: 11px;
266
+ font-size: 0.75rem;
248
267
  text-transform: uppercase;
249
268
  color: $sidebar-menu-item-icon-color;
250
269
  font-weight: $font-weight-semibold;
@@ -5104,8 +5104,7 @@ class SidebarItemComponent {
5104
5104
  >
5105
5105
  {{ title() }}
5106
5106
  </li>
5107
- }
5108
- @if (!title()) {
5107
+ } @else {
5109
5108
  <li>
5110
5109
  @if (children().length) {
5111
5110
  <a
@@ -5122,18 +5121,18 @@ class SidebarItemComponent {
5122
5121
  @if (icon()) {
5123
5122
  <i [class]="icon()"></i>
5124
5123
  }
5125
- <span>{{ label() }}</span>
5124
+ <span class="menu-text">{{ label() }}</span>
5126
5125
  </a>
5127
- }
5128
- <rlb-collapse [id]="'side-item' + _id">
5129
- <ul
5130
- class="sub-menu"
5131
- aria-expanded="false"
5132
- >
5133
- <ng-content select="rlb-sidebar-item"></ng-content>
5134
- </ul>
5135
- </rlb-collapse>
5136
- @if (!children().length) {
5126
+
5127
+ <rlb-collapse [id]="'side-item' + _id">
5128
+ <ul
5129
+ class="sub-menu"
5130
+ aria-expanded="false"
5131
+ >
5132
+ <ng-content select="rlb-sidebar-item"></ng-content>
5133
+ </ul>
5134
+ </rlb-collapse>
5135
+ } @else {
5137
5136
  <a
5138
5137
  [routerLink]="link()"
5139
5138
  [badge]="badgeCounter() && badgeCounter()! > 0 ? badgeCounter() : undefined"
@@ -5144,7 +5143,7 @@ class SidebarItemComponent {
5144
5143
  @if (icon()) {
5145
5144
  <i [class]="icon()"></i>
5146
5145
  }
5147
- <ng-content></ng-content>
5146
+ <span class="menu-text"><ng-content></ng-content></span>
5148
5147
  </a>
5149
5148
  }
5150
5149
  </li>
@@ -5165,8 +5164,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
5165
5164
  >
5166
5165
  {{ title() }}
5167
5166
  </li>
5168
- }
5169
- @if (!title()) {
5167
+ } @else {
5170
5168
  <li>
5171
5169
  @if (children().length) {
5172
5170
  <a
@@ -5183,18 +5181,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
5183
5181
  @if (icon()) {
5184
5182
  <i [class]="icon()"></i>
5185
5183
  }
5186
- <span>{{ label() }}</span>
5184
+ <span class="menu-text">{{ label() }}</span>
5187
5185
  </a>
5188
- }
5189
- <rlb-collapse [id]="'side-item' + _id">
5190
- <ul
5191
- class="sub-menu"
5192
- aria-expanded="false"
5193
- >
5194
- <ng-content select="rlb-sidebar-item"></ng-content>
5195
- </ul>
5196
- </rlb-collapse>
5197
- @if (!children().length) {
5186
+
5187
+ <rlb-collapse [id]="'side-item' + _id">
5188
+ <ul
5189
+ class="sub-menu"
5190
+ aria-expanded="false"
5191
+ >
5192
+ <ng-content select="rlb-sidebar-item"></ng-content>
5193
+ </ul>
5194
+ </rlb-collapse>
5195
+ } @else {
5198
5196
  <a
5199
5197
  [routerLink]="link()"
5200
5198
  [badge]="badgeCounter() && badgeCounter()! > 0 ? badgeCounter() : undefined"
@@ -5205,7 +5203,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
5205
5203
  @if (icon()) {
5206
5204
  <i [class]="icon()"></i>
5207
5205
  }
5208
- <ng-content></ng-content>
5206
+ <span class="menu-text"><ng-content></ng-content></span>
5209
5207
  </a>
5210
5208
  }
5211
5209
  </li>