Skip to content

Commit 998409d

Browse files
authored
feat: apply changes for oruga v0.9.0 (#150)
1 parent 5bd84ba commit 998409d

File tree

15 files changed

+290
-277
lines changed

15 files changed

+290
-277
lines changed

package-lock.json

Lines changed: 122 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
"update": "ncu -u"
3232
},
3333
"peerDependencies": {
34-
"@oruga-ui/oruga-next": "0.9.0-pre.2"
34+
"@oruga-ui/oruga-next": "0.9.0"
3535
},
3636
"dependencies": {
3737
"bootstrap": "^5.3.3"
3838
},
3939
"devDependencies": {
40-
"@oruga-ui/examples": "0.9.0-pre.2",
41-
"@oruga-ui/oruga-next": "0.9.0-pre.2",
40+
"@oruga-ui/examples": "0.9.0",
41+
"@oruga-ui/oruga-next": "0.9.0",
4242
"@types/node": "^22.9.0",
4343
"@vitejs/plugin-vue": "5.1.4",
4444
"@vue/eslint-config-prettier": "^10.1.0",
@@ -66,4 +66,4 @@
6666
"vue-router": "4.4.5",
6767
"vue-tsc": "2.1.10"
6868
}
69-
}
69+
}

src/App.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ import components from "@/components";
3636
3737
main {
3838
flex-grow: 1;
39+
width: 100%;
3940
height: 100vh;
4041
padding: 2rem;
4142
padding-bottom: 6rem;
42-
overflow-y: scroll;
43+
padding-left: calc(var(--vp-sidebar-width) + 2rem);
4344
4445
> section {
4546
padding: 1rem 0;
@@ -56,6 +57,8 @@ import components from "@/components";
5657
}
5758
5859
#nav {
60+
position: fixed;
61+
left: 0;
5962
display: flex;
6063
flex-direction: column;
6164
height: 100vh;
@@ -97,7 +100,7 @@ import components from "@/components";
97100
}
98101
99102
@media (max-width: 576px) {
100-
#main {
103+
#app {
101104
#nav {
102105
display: none;
103106
}

src/assets/scss/components/_autocomplete.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$autocomplete-menu-max-height: 200px !default;
33
/* @docs */
44

5-
.autocomplete-wrapper {
5+
.autocomplete {
66
--#{$prefix}autocomplete-menu-max-height: #{$autocomplete-menu-max-height};
77
display: inline-block;
88

src/assets/scss/components/_button.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ $btn-hover-box-shadow: $box-shadow-sm !default;
9999
cursor: auto;
100100
}
101101

102+
&.btn-inverted {
103+
--#{$prefix}btn-bg: transparent;
104+
--#{$prefix}btn-border-color: transparent;
105+
}
106+
102107
// inverted color
103108
@each $name, $color in $theme-colors {
104109
&.variant-#{$name}-inverted,

src/assets/scss/components/_carousel.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $carousel-indicator-spacer: $spacer !default;
3737
// $carousel-transition: transform $carousel-transition-duration ease-in-out; // Define transform transition first if using multiple transitions (e.g., `transform 2s ease, opacity .5s ease-out`)
3838
/* @bootstrap docs */
3939

40-
.carousel-wrapper {
40+
.carousel {
4141
--#{$prefix}carousel-control-top: #{$carousel-control-top};
4242
--#{$prefix}carousel-overlay-background: #{$carousel-overlay-background};
4343
--#{$prefix}carousel-overlay-zindex: #{$carousel-overlay-zindex};

src/assets/scss/components/_dropdown.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ $dropdown-modal-backdrop-zindex: $zindex-modal-backdrop !default;
159159
}
160160

161161
// mobile class
162-
&.dropdown-modal {
162+
&.dropdown-modal:not(&.inline) {
163163
.dropdown-menu {
164164
--#{$prefix}dropdown-width: 75%;
165165
--#{$prefix}dropdown-min-width: 25%;
@@ -200,7 +200,6 @@ $dropdown-modal-backdrop-zindex: $zindex-modal-backdrop !default;
200200
.dropdown-menu {
201201
--#{$prefix}dropdown-zindex: 10;
202202
position: relative;
203-
top: 0;
204203
}
205204
}
206205
}

src/assets/scss/components/_field.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ $input-field-btn-border-color: $input-border-color !default;
9797
&.expanded {
9898
flex-grow: 1;
9999
flex-shrink: 1;
100-
width: auto;
101100

102101
&.btn {
103102
width: 100%;

src/assets/scss/components/_input.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ $input-icon-padding-lg: 3rem !default;
162162
}
163163
}
164164

165+
// remove arrow if not arrowed
166+
.form-select:not(.arrowed) {
167+
--#{$prefix}form-select-bg-img: unset;
168+
}
169+
165170
// the Position of the icon
166171
.icon {
167172
--#{$prefix}input-icon-color: #{$input-icon-color};

src/assets/scss/components/_menu.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ $menu-item-active-bg: var(--#{$prefix}primary) !default;
1010
$menu-item-active-color: var(--#{$prefix}white) !default;
1111
$menu-item-disabled-bg: transparent !default;
1212
$menu-item-disabled-color: var(--#{$prefix}secondary) !default;
13+
$menu-item-border-radius: var(--#{$prefix}border-radius) !default;
1314
$menu-icon-spacer: 0.5rem !default;
1415
$menu-submenu-border-left: 1px solid #445e00 !default;
1516
$menu-submenu-padding-left: 0.75em !default;
1617
$menu-submenu-margin: 0.75em !default;
1718
/* @docs */
1819

19-
.menu-wrapper {
20+
.menu {
2021
.menu-label {
2122
--#{$prefix}menu-label-bg: #{$menu-label-bg};
2223
--#{$prefix}menu-label-color: #{$menu-label-color};
@@ -33,23 +34,25 @@ $menu-submenu-margin: 0.75em !default;
3334

3435
line-height: var(--#{$prefix}menu-list-line-height);
3536

36-
.menu-item-wrapper {
37+
.menu-item {
3738
--#{$prefix}menu-item-padding: #{$menu-item-padding};
3839
--#{$prefix}menu-item-bg: #{$menu-item-bg};
3940
--#{$prefix}menu-item-color: #{$menu-item-color};
4041
--#{$prefix}menu-item-active-bg: #{$menu-item-active-bg};
4142
--#{$prefix}menu-item-active-color: #{$menu-item-active-color};
4243
--#{$prefix}menu-item-disabled-bg: #{$menu-item-disabled-bg};
4344
--#{$prefix}menu-item-disabled-color: #{$menu-item-disabled-color};
45+
--#{$prefix}menu-item-border-radius: #{$menu-item-border-radius};
4446

4547
list-style: none;
4648

47-
.menu-item {
49+
.menu-button {
4850
display: block;
4951
list-style: none;
5052
background: var(--#{$prefix}menu-item-bg);
5153
color: var(--#{$prefix}menu-item-color);
5254
padding: var(--#{$prefix}menu-item-padding);
55+
border-radius: var(--#{$prefix}menu-item-border-radius);
5356

5457
&.active {
5558
--#{$prefix}menu-item-bg: var(--#{$prefix}menu-item-active-bg);

0 commit comments

Comments
 (0)