freeleaps_frontend/frontend/src/assets/styles/main.scss
2024-09-13 14:35:27 +00:00

257 lines
5.7 KiB
SCSS
Executable File

// Override Bootstrap's Sass default variables
//
// Nearly all variables in Bootstrap are written with the `!default` flag.
// This allows you to override the default values of those variables before
// you import Bootstrap's source Sass files.
//
// Overriding the default variable values is the best way to customize your
// CSS without writing _new_ styles. For example, change you can either change
// `$body-color` or write more CSS that override's Bootstrap's CSS like so:
// `body { color: red; }`.
html,
body {
margin: 0;
font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC',
'Microsoft YaHei', 'WenQuanYi Micro Hei', 'DM Sans', sans-serif;
font-weight: 400;
}
p {
white-space: normal;
word-break: break-word;
}
//
// Bring in Bootstrap
//
// Option 1
//
// Import all of Bootstrap's CSS
//@import "bootstrap/scss/bootstrap";
// Option 2
//
// Import just the styles you need. Note that some stylesheets are required no matter what.
@import 'bootstrap/scss/functions'; // Required
@import 'bootstrap/scss/variables'; // Required
@import 'bootstrap/scss/mixins'; // Required
//
// Override Bootstrap here
//
// Toggle global options
// $enable-gradients: true;
// $enable-shadows: true;
// // Customize some defaults
// $body-color: $purple;
// $body-bg: #f5f5f5;
// $border-radius: .4rem;
@import 'variables';
// // @import "bootstrap/scss/root";
// @import "bootstrap/scss/reboot"; // Required
// @import "bootstrap/scss/type";
// // @import "bootstrap/scss/images";
// // @import "bootstrap/scss/code";
// @import "bootstrap/scss/grid";
// // @import "bootstrap/scss/tables";
// // @import "bootstrap/scss/forms";
// @import "bootstrap/scss/buttons";
// @import "bootstrap/scss/transitions";
// // @import "bootstrap/scss/dropdown";
// // @import "bootstrap/scss/custom-forms";
// // @import "bootstrap/scss/nav";
// // @import "bootstrap/scss/navbar"; // Requires nav
// // @import "bootstrap/scss/card";
// // @import "bootstrap/scss/breadcrumb";
// // @import "bootstrap/scss/pagination";
// // @import "bootstrap/scss/badge";
// // @import "bootstrap/scss/jumbotron";
// // @import "bootstrap/scss/alert";
// // @import "bootstrap/scss/progress";
// // @import "bootstrap/scss/media";
// // @import "bootstrap/scss/list-group";
// @import "bootstrap/scss/close";
// // @import "bootstrap/scss/toasts";
// @import "bootstrap/scss/modal"; // Requires transitions
// // @import "bootstrap/scss/tooltip";
// // @import "bootstrap/scss/popover";
// // @import "bootstrap/scss/carousel";
// // @import "bootstrap/scss/spinners";
// @import "bootstrap/scss/utilities";
// // @import "bootstrap/scss/print";
@import 'utilities';
@import 'bootstrap/scss/bootstrap';
//@import 'sizing';
@import 'components';
@import 'texts';
//
// Custom styles
//
@mixin container-background {
position: relative;
clear: both;
}
@mixin container-content {
max-width: $body-width;
width: 100%;
height: 100%;
margin: 0 auto;
}
.btn-link {
text-decoration: none;
color: $primary;
}
.dropdown-menu {
border: none;
box-shadow: 0px 0px 24px 0px #d4d3e380;
padding: 0;
overflow: hidden;
.btn-link {
text-decoration: none;
height: 33px;
width: 100%;
color: #0d1637;
font-size: 14px;
text-align: left;
border-radius: 0;
&:hover {
background-color: #f3f6ff;
}
&.active {
background-color: #1748f8;
color: white;
}
}
.dropdown-new {
color: #1748f8;
&:hover {
background-color: white;
}
}
.dropdown-new-input-container {
padding: 6px 12px;
position: relative;
input {
border: 1px solid #e7e8eb;
box-shadow: none;
border-radius: 3px;
padding: 0 20px 0 5px;
height: 22px;
font-size: 14px;
}
.dropdown-new-input-icon {
width: 16px;
height: 16px;
padding: 3px;
color: #3d455f;
background-color: #eeeff1;
border-radius: 3px;
position: absolute;
top: 10px;
right: 15px;
}
}
}
.container {
@media (min-width: 1200px) {
max-width: $body-width;
}
}
.accordion-list {
box-shadow: 0px 0px 24px 0px #d4d3e380;
border: none;
border-radius: 12px;
margin-bottom: 16px;
.accordion-item {
border: none;
}
}
.accordion-button {
padding: 12px 28px 12px 12px;
outline: none;
box-shadow: none !important;
&::before {
content: '';
bottom: 0;
left: 50%;
width: 0;
height: 1px;
position: absolute;
background-color: #dee2e6;
transition: all 300ms ease-in-out;
}
.dashed-container {
flex: 1;
margin-right: 28px;
padding: 8px 12px;
font-weight: bold;
border: 1px dashed #aebffd;
border-radius: 3px;
}
&:not(.collapsed) {
color: black;
background-color: transparent;
box-shadow: none;
// border-bottom: 1px solid #dee2e6;
&::before {
left: 0;
width: 100%;
}
.dashed-container {
background-color: #f3f6ff;
}
}
}
.submission-result-container {
@extend .flex-row-container;
align-items: center;
justify-content: center;
min-height: $body-height;
}
.submission-result-card {
width: fit-content;
min-width: 641px;
padding: 45px 10px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 26px;
line-height: 36px;
box-shadow: 0px 0px 24px 0px #d4d3e380;
img {
width: 86px;
margin-bottom: 20px;
}
.btn-link {
text-decoration: underline;
padding: 0;
font-size: inherit;
}
}
.upload-contianer {
display: flex;
align-items: center;
}
input:-webkit-autofill {
box-shadow: 0 0 0 1000px white inset !important;
}
input:-internal-autofill-previewed,
input:-internal-autofill-selected {
transition: background-color 5000s ease-in-out 0s !important;
}