pipicar/resources/assets/sass/components/card.scss

411 lines
9.6 KiB
SCSS

.card{
background-color: #fff;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 50px;
overflow: auto;
border-radius: 25px;
-webkit-box-shadow: 1px -2px 17px -5px rgba(179, 179, 179, 0.76);
-moz-box-shadow: 1px -2px 17px -5px rgba(179, 179, 179, 0.76);
box-shadow: 1px -2px 17px -5px rgba(179, 179, 179, 0.76);
border: none;
margin: 10px;
.card-body{
padding: 20px;
}
.card-header {
background-color: $white;
}
}
.reset-card {
padding: 30px;
.card-header {
text-align: center;
h5 {
text-align: center;
font-size: 1.5rem;
}
p {
font-size: 0.875rem;
}
}
.reset-btn {
display: flex;
align-content: center;
justify-content: center;
}
}
.bi.bi-caret-right-fill::before,
.bi.bi-caret-left-fill::before {
vertical-align: -0.2em;
}
iframe {
border: none!important;
border-radius: 25px!important;
box-shadow: 1px -2px 17px -5px rgba(179, 179, 179, 0.76);
padding: 10px 30px 30px!important;
}
.table-container.subcrud-table {
box-shadow: none;
}
.row.custom-row {
display: flex;
flex-wrap: wrap;
justify-content: flex-start; // Можно center, если хочешь выравнивать
.car-card {
width: 100%;
transition: .3s all ease;
padding: 25px 20px;
border-radius: 8px;
border-bottom: 2px solid transparent;
box-shadow: #0000001a 0 4px 6px -1px, #0000000f 0 2px 4px -1px;
img {
width: 100%;
object-fit: contain;
}
.title {
font-size: 24px;
font-weight: 700;
margin-bottom: 20px;
}
.add-li {
display: flex;
align-content: center;
color: #a8a8a8;
margin-bottom: 5px;
font-size: 16px;
transition: .3s all ease;
p {
margin-bottom: 0;
}
}
.car-card-footer {
display: flex;
align-items: flex-end;
justify-content: space-between;
border-top: 1px solid #ddd;
padding-top: 10px;
margin-top: 10px;
.cost {
font-size: 1rem;
small {
font-size: .875em;
color: #a8a8a8;
}
p {
margin: 0;
font-size: 24px;
font-weight: 800;
line-height: 1;
}
}
}
}
.car-card:hover {
box-shadow: #0000001a 0 20px 25px -5px, #0000000a 0 10px 10px -5px;
border-bottom: 2px solid #01B0E8;
.add-li {
p {
color: #1e1e1e;
}
i {
color: $primary-color;
}
}
}
}
.card-catalog-left-container {
.card {
border: none;
box-shadow: #0000001a 0 4px 6px -1px, #0000000f 0 2px 4px -1px;
padding: 0;
border-radius: .25rem;
margin: 0;
.card-body {
flex: 1 1 auto;
padding: 1rem 1rem;
.title {
font-weight: 700;
text-align: left;
}
}
}
.card-catalog-left {
background-color: #01b0e8;
color: #fff;
.title {
font-size: 16px;
}
ul {
padding-inline-start: 0;
list-style-type: none;
padding: 0;
text-align: left;
li {
display: flex;
align-items: flex-start;
margin-bottom: 7px;
padding-bottom: 7px;
border-bottom: 1px dashed #45d2f4;
font-size: 14px;
justify-content: start;
&:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
}
}
}
}
.card-catalog-left2 {
background-color:#fff;
color: #7e7e7e;
text-align: left;
.title {
font-size: 18px;
color: #333235;
}
.cr-item {
font-size: 14px;
color: #7e7e7e;
}
.btn-link {
font-size: 14px;
color: #01b0e8;
}
}
.card-catalog-left-filter {
transition: max-height 0.3s ease, opacity 0.3s ease;
overflow: hidden;
.form-label {
color: #a8a8a8;
}
#started_at, #ended_at {
font-size: 14px;
}
.separator {
font-size: 18px;
padding: 0 8px;
display: inline-block;
vertical-align: middle;
color: #333235;
}
.btn-group {
display: inline-flex;
flex-wrap: wrap !important;
gap: 6px;
justify-content: center;
align-content: center;
.btn {
flex: none;
flex-shrink: 0;
width: auto;
font-size: 14px;
padding: 5px 12px;
color: #333235;
background-color: #F1F1F1;
border-radius: 0.8rem!important;
}
.btn-check:checked + .btn {
background-color: #01b0e8;
color: #fff;
border-color: #01b0e8;
}
}
.filter-buttons {
button {
font-size: 14px;
padding: 5px 12px;
}
}
}
.collapsible {
max-height: 0;
overflow: hidden;
opacity: 0;
}
.collapsible.expanded {
max-height: 1000px;
opacity: 1;
}
.profile-info {
padding: 50px 20px;
margin: 0;
.card-body {
.profile-content {
.profile-img {
width: 60%;
height: 60%;
img {
border-radius: 50%;
padding: 10px;
}
}
.btn {
font-size: 14px;
padding: 5px 12px;
}
}
}
}
.user-edit-card {
padding: 7vh 10vh;
margin: 3vh 10vh;
.user-edit {
.img-container {
min-width: 170px;
.img-profile-edit {
border-radius: 50%;
}
img {
border-radius: 50%;
}
}
label {
text-align: center;
}
}
}
.applications-history {
margin: 0;
.card-body {
padding: 0;
.nav-tabs {
border: none;
margin-bottom: 40px;
.nav-item {
.nav-link {
position: relative;
color: $text-color;
font-size: 1rem;
border: none;
border-bottom: 1px solid transparent;
transition: border-color 0.3s;
padding: 15px;
&:focus, &:hover {
border: none;
box-shadow: none
}
&::after {
content: '';
position: absolute;
left: 0;
bottom: -1px;
width: 100%;
height: 2px;
background-color: $primary-color;
transform: scaleX(0);
transform-origin: bottom right;
transition: transform 0.3s ease-out;
}
&:hover {
color: lighten($primary-color, 10%);
&::after {
transform: scaleX(1);
transform-origin: bottom left;
background-color: lighten($primary-color, 10%)
}
}
&:focus {
box-shadow: none;
}
}
.nav-link.active {
color: $primary-color;
&::after {
transform: scaleX(1);
transform-origin: bottom left;
background-color: $primary-color;
}
}
}
}
.table-container {
box-shadow: none;
.table {
thead {
border-color: $light-color;
th {
b {
color: $primary-color;
text-decoration: none;
white-space: nowrap;
}
}
}
tbody {
tr {
td {
// Обычные стили для ячеек
}
&:last-child {
td:last-child,
td:first-child
{
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
}
}
}
}
}
}
}
@media (min-width: 768px) and (max-width: 1024px) {
.profile-info {
.card-body {
.profile-content {
.profile-img {
width: 80%;
height: 80%;
}
.btn {
font-size: 11px;
}
}
}
}
}