import styling components from bootstrap

This commit is contained in:
benson
2023-05-04 18:38:31 +08:00
parent 836729201d
commit 4acfe6e94c
5 changed files with 14 additions and 96 deletions

3
src/css/bootstrap.scss vendored Normal file
View File

@@ -0,0 +1,3 @@
@import "../../node_modules/bootstrap/scss/functions";
@import "../../node_modules/bootstrap/scss/variables";
@import "../../node_modules/bootstrap/scss/mixins";

1
src/css/helpers.scss Normal file
View File

@@ -0,0 +1 @@
@import "../../node_modules/bootstrap/scss/helpers/visually-hidden";

View File

@@ -1,3 +1,7 @@
@import "bootstrap";
@import "spinner";
@import "helpers";
.ncdownloader-personal-settings,
.ncdownloader-admin-settings {
position: relative;

2
src/css/spinner.scss Normal file
View File

@@ -0,0 +1,2 @@
@import "../../node_modules/bootstrap/scss/spinners";

View File

@@ -1,3 +1,7 @@
@import 'bootstrap';
@import 'spinner';
@import 'helpers';
#ncdownloader-settings-collapsible-container {
padding-left: 4%;
}
@@ -192,99 +196,3 @@
width: 135px;
}
}
/* from bootstrap */
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
position : absolute !important;
width : 1px !important;
height : 1px !important;
padding : 0 !important;
margin : -1px !important;
overflow : hidden !important;
clip : rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border : 0 !important;
}
@-webkit-keyframes spinner-border {
to {
transform : rotate(360deg)
/* rtl :ignore */
;
}
}
@keyframes spinner-border {
to {
transform : rotate(360deg)
/* rtl :ignore */
;
}
}
.spinner-border {
display : inline-block;
width : 2rem;
height : 2rem;
vertical-align : -0.125em;
border : 0.25em solid currentColor;
border-right-color: transparent;
border-radius : 50%;
-webkit-animation : 0.75s linear infinite spinner-border;
animation : 0.75s linear infinite spinner-border;
}
.spinner-border-sm {
width : 1rem;
height : 1rem;
border-width: 0.2em;
}
@-webkit-keyframes spinner-grow {
0% {
transform: scale(0);
}
50% {
opacity : 1;
transform: none;
}
}
@keyframes spinner-grow {
0% {
transform: scale(0);
}
50% {
opacity : 1;
transform: none;
}
}
.spinner-grow {
display : inline-block;
width : 2rem;
height : 2rem;
vertical-align : -0.125em;
background-color : currentColor;
border-radius : 50%;
opacity : 0;
-webkit-animation: 0.75s linear infinite spinner-grow;
animation : 0.75s linear infinite spinner-grow;
}
.spinner-grow-sm {
width : 1rem;
height: 1rem;
}
@media (prefers-reduced-motion: reduce) {
.spinner-border,
.spinner-grow {
-webkit-animation-duration: 1.5s;
animation-duration : 1.5s;
}
}