10000 chore(b-form-rating): convert line endings to Unix by vitallium · Pull Request #5473 · bootstrap-vue/bootstrap-vue · GitHub
[go: up one dir, main page]

Skip to content

chore(b-form-rating): convert line endings to Unix #5473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 57 additions & 57 deletions src/components/form-rating/_form-rating.scss
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
.b-rating {
text-align: center;
&.d-inline-flex {
width: auto;
}
.b-rating-star,
.b-rating-value {
padding: 0 0.25em;
}
.b-rating-value {
// Keep the stars from moving when value changes (usually)
min-width: 2.5em;
}
.b-rating-star {
display: inline-flex;
justify-content: center;
outline: 0;
.b-rating-icon {
display: inline-flex;
transition: all 0.15s ease-in-out;
}
}
&.disabled,
&:disabled {
background-color: $input-disabled-bg;
color: $text-muted;
}
&:not(.disabled):not(.readonly) {
.b-rating-star {
cursor: pointer;
}
// Zoom focused or hovered icons
&:focus:not(:hover) .b-rating-star.focused,
.b-rating-star:hover {
.b-rating-icon {
transform: scale(1.5);
}
}
}
// Flip the half icon if RTL mode
// We transform the outer star wrapper so that we do not
// interfere with the hover/focus transform above
&[dir="rtl"] {
.b-rating-star-half {
transform: scale(-1, 1);
}
}
}
.b-rating {
text-align: center;

&.d-inline-flex {
width: auto;
}

.b-rating-star,
.b-rating-value {
padding: 0 0.25em;
}

.b-rating-value {
// Keep the stars from moving when value changes (usually)
min-width: 2.5em;
}

.b-rating-star {
display: inline-flex;
justify-content: center;
outline: 0;

.b-rating-icon {
display: inline-flex;
transition: all 0.15s ease-in-out;
}
}

&.disabled,
&:disabled {
background-color: $input-disabled-bg;
color: $text-muted;
}

&:not(.disabled):not(.readonly) {
.b-rating-star {
cursor: pointer;
}

// Zoom focused or hovered icons
&:focus:not(:hover) .b-rating-star.focused,
.b-rating-star:hover {
.b-rating-icon {
transform: scale(1.5);
}
}
}

// Flip the half icon if RTL mode
// We transform the outer star wrapper so that we do not
// interfere with the hover/focus transform above
&[dir="rtl"] {
.b-rating-star-half {
transform: scale(-1, 1);
}
}
}
2 changes: 1 addition & 1 deletion src/components/form-rating/index.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "form-rating";
@import "form-rating";
0