/var/www/vhosts/ihelp.ro/httpdocs/webroot.dev/scss/import/blocks
Edit: /var/www/vhosts/ihelp.ro/httpdocs/webroot.dev/scss/import/blocks/_block__profile.scss (19601B)
.block__profile {
padding-top: 0;
padding-bottom: 2rem;
h1 {
margin-bottom: 1rem;
}
.profile-side-nav {
width: 100%;
max-width: 300px;
margin-bottom: 0;
@media (min-width: 992px) {
margin-bottom: 2rem;
}
.toggleProfileMenu {
display: block;
width: 100%;
margin-bottom: 20px;
@media (min-width: 992px) {
display: none;
}
.icon {
display: inline-block;
vertical-align: middle;
transform: rotate(-90deg);
margin-left: 10px;
svg {
width: 20px;
height: 20px;
transition: all 600ms ease;
transform: rotateY(0);
}
}
&.active {
svg {
transform: rotateY(-180deg);
}
}
}
.list-group {
padding: 1rem;
border: 1px solid #f4f4f4;
border-radius: 4px;
list-style: none;
display: none;
@media (min-width: 992px) {
display: block !important;
}
.list-group-item {
border: none;
padding: 0;
&.list-group-title {
font-weight: bold;
margin: 20px 0 5px;
&:first-child {
margin-top: 0;
}
}
a {
color: inherit;
display: block;
transition: all 300ms ease;
&:hover {
color: $primary;
}
&.active {
text-decoration: underline;
}
}
}
}
}
.profile-content {
@media (min-width: 768px) {
background: #f8f9fb;
border: 1px solid #f4f4f4;
border-radius: 4px;
padding: 1rem;
}
.btn {
&.size-sm {
font-size: 20px;
padding: 12px 25px !important;
line-height: 1;
}
&.has-svg {
svg,
span {
display: inline-block;
vertical-align: middle;
}
svg {
width: 16px;
height: 16px;
}
}
&.svg-on-left {
padding-left: 5px;
}
&.svg-on-right {
padding-right: 5px;
}
}
.profile-content-wrapper {
background: #ffffff;
border-radius: 5px;
border: 1px solid #f4f4f4;
padding: 5px;
p {
line-height: 1.3;
}
@media (min-width: 768px) {
padding: 15px;
}
.input,
.form-group {
label {
font-weight: bold;
display: block;
width: 100%;
}
.select2-container--default {
width: 100% !important;
}
input,
select,
textarea.form-control,
.select2-container--default .select2-selection {
background: #f8f9fb;
border: 1px solid #f4f4f4;
border-radius: 0;
height: 48px;
&.select2-selection--multiple {
display: flex;
height: auto;
min-height: 48px;
ul {
margin-bottom: 0;
}
}
}
.select2-container--disabled {
opacity: 0.5;
}
.select2 .selection,
.select2-container--default .select2-selection {
display: block;
min-width: 100% !important;
width: 100% !important;
}
select {
height: auto;
min-height: 48px;
}
textarea.form-control {
height: 120px;
line-height: 1.3;
padding-top: 10px;
padding-bottom: 10px;
}
&.textarea {
label {
margin-top: 15px;
}
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
line-height: 48px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
top: 50%;
transform: translateY(-50%);
}
.select2-container--open .select2-selection {
border-color: #aaa;
}
.help-block {
min-width: 100%;
flex: 1 1 100%;
}
}
.profile-image {
img {
max-width: 100%;
}
}
.fileUploadLabel {
display: flex !important;
min-width: 100% !important;
width: 100% !important;
cursor: pointer;
.fileUploadLabelImage {
min-width: 100px;
width: 100px;
height: 100px;
position: relative;
border-radius: 100%;
overflow: hidden;
margin-right: 20px;
border: 1px solid #f4f4f4;
img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
max-width: 100%;
max-height: 100%;
object-fit: cover;
&.no-user-image {
min-width: 65%;
min-height: 65%;
max-width: 65%;
max-height: 65%;
object-fit: contain;
opacity: 0.75;
}
}
}
.fileUploadLabelText {
margin: auto 0;
.btn {
padding: 5px 15px;
svg {
width: 20px;
height: 20px;
margin-left: 15px;
fill: $secondary;
transition: all 300ms ease;
}
&:hover {
svg {
fill: #fff;
}
}
}
}
.fileUpload {
position: fixed;
top: -1000px;
}
}
.input {
margin-bottom: 15px;
.error {
color: $primary;
font-size: 14px;
font-weight: bold;
}
&.has-error {
.fileUploadLabelImage {
border-color: $primary;
img {
opacity: 0.5;
}
}
.btn {
color: $primary;
border-color: $primary;
svg {
fill: $primary;
}
&:hover {
svg {
fill: $primary;
}
}
}
}
}
}
}
.table {
margin: 0 !important;
th,
td {
padding: 5px;
font-size: 12px;
a {
font-size: 12px;
color: $secondary;
}
}
td {
vertical-align: middle;
.btn {
padding: 3px 0;
min-width: 32px;
margin: 2px;
}
.indicator {
svg {
width: 16px;
height: 16px;
}
}
.badge {
background: #ccc;
color: #000;
border-radius: 10px;
padding: 3px;
margin: 2px 1px;
white-space: normal;
text-align: left;
}
}
}
.td-content {
.td-content {
.th-title {
display: none;
}
}
}
.orderProductsRow {
& > td {
& > .th-title {
display: none !important;
}
& > .td-content {
width: 100% !important;
}
}
}
@media (min-width: 768px) {
.th-title {
display: none;
}
}
.table-responsive {
overflow: visible;
}
@media (max-width: 767px) {
.table-responsive-mobile {
overflow: initial;
}
.table-mobile {
display: block !important;
tbody {
display: block !important;
}
thead {
display: none !important;
}
tr {
display: flex;
flex-wrap: wrap;
td {
font-size: 0;
& > * {
font-size: 12px;
vertical-align: top;
}
display: block !important;
@media (min-width: 371px) and (max-width: 578px) {
display: flex !important;
.th-title,
.td-content {
margin: auto 0;
}
}
min-width: 100%;
flex: 1 1 100%;
@media (min-width: 578px) {
min-width: 50%;
flex: 1 1 50%;
}
text-align: left !important;
margin-bottom: -1px;
.text-center {
text-align: left !important;
}
.th-title {
font-weight: bold;
display: inline-block;
padding-right: 7px;
@media (max-width: 370px) {
display: block;
width: 100% !important;
}
@media (min-width: 578px) {
display: block;
}
}
.td-content {
display: inline-block;
@media (max-width: 370px) {
display: block;
width: 100% !important;
}
}
.indicator {
display: inline-block;
}
&.last-child {
min-width: 100%;
flex: 1 1 100%;
}
}
}
}
}
.thumb-img {
width: 100%;
padding-top: 50%;
position: relative;
overflow: hidden;
height: 0;
img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
object-fit: cover;
min-width: 100%;
min-height: 100%;
}
}
.rows-striped {
padding: 5px;
border-radius: 5px;
@media (min-width: 992px) {
padding: 15px 10px;
}
a:not(.btn) {
color: $secondary;
}
.btn {
margin-top: 2px;
margin-bottom: 2px;
}
.row {
border-radius: 5px;
margin: 0;
border-top: 2px dotted #aaa;
padding: 10px 5px;
transition: all 300ms ease;
&:first-child {
border-top: none;
}
&:last-child {
}
&:nth-child(2n + 1) {
// background: #fafafa;
}
&:hover {
background: #fafafa;
}
@media (max-width: 992px) {
[class*="col-"] {
padding: 0;
}
.actions {
margin-top: 10px !important;
}
}
}
h3 {
font-size: 16px;
}
h4 {
font-size: 14px;
}
@media (min-width: 768px) {
h3 {
font-size: 18px;
}
h4 {
font-size: 15px;
}
}
}
.order-products {
padding: 0;
height: 0;
overflow: hidden;
opacity: 0;
margin: 0;
transition: all 300ms ease;
border: 1px solid #bbb;
border-radius: 5px !important;
& > .row {
height: 0;
opacity: 0;
transition: all 300ms ease;
padding-top: 0;
padding-bottom: 0;
border-top-style: dashed;
border-top-width: 1px;
border: none;
border-radius: 0 !important;
&:first-child {
border-top-left-radius: 5px !important;
border-top-right-radius: 5px !important;
}
&:last-child {
border-bottom-left-radius: 5px !important;
border-bottom-right-radius: 5px !important;
}
background: #fff;
&:nth-child(2n + 1) {
background: #eee;
}
&:hover {
background: #fee;
}
.row {
padding: 0;
border: none !important;
&:hover {
background: none;
}
> div {
padding: 0;
}
}
}
overflow: hidden;
h4,
p {
font-size: 12px;
}
&.active {
height: auto;
opacity: 1;
margin-top: 10px;
overflow: visible;
& > .row {
opacity: 1;
height: auto;
padding-top: 7px;
padding-bottom: 7px;
overflow: visible;
}
}
}
}
#copyThis {
position: absolute;
top: -1000px;
left: -1000px;
}
.id-ellipsis-wrapper {
position: relative;
display: inline-block;
vertical-align: middle;
padding: 0;
margin: 0;
background: none;
.id-ellipsis {
display: block;
width: 100%;
transition: all 300ms ease;
background: rgba(0, 0, 0, 0);
color: $secondary;
top: 0%;
padding: 3px;
border-radius: 4px;
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
&:hover,
&:focus {
.id-ellipsis {
z-index: 10;
background: $secondary;
color: #fff;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
}
}
.id-ellipsis-wrapper.active:after {
background: #333;
background: rgba(0, 0, 0, 0.8);
border-radius: 5px;
bottom: 100%;
margin-bottom: 5px;
color: #fff;
content: attr(data-tooltip); /**extract the content from the title */
left: 50%;
transform: translateX(-50%);
padding: 5px 15px;
position: absolute;
z-index: 98;
width: auto;
white-space: nowrap;
transition: all 300ms ease;
font-size: 12px;
font-weight: normal;
}
.id-ellipsis-wrapper.active:before {
border: solid;
border-color: #333 transparent;
border-width: 6px 6px 0 6px;
bottom: 100%;
content: "";
left: 50%;
transform: translateX(-50%);
position: absolute;
z-index: 99;
transition: all 300ms ease;
}
.dashboard {
.user-image-wrapper {
display: flex;
flex-wrap: wrap;
.user-image {
width: 80px;
height: 80px;
margin: auto 10px auto 0;
@media (min-width: 768px) {
width: 120px;
height: 120px;
margin-right: 20px;
}
position: relative;
border-radius: 100%;
overflow: hidden;
border: 1px solid #f4f4f4;
img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
max-width: 100%;
max-height: 100%;
object-fit: cover;
&.no-image {
min-width: 80%;
min-height: 80%;
max-width: 80%;
max-height: 80%;
}
}
}
.user-details {
word-break: break-all;
max-width: calc(100% - 90px);
@media (min-width: 768px) {
max-width: calc(100% - 140px);
}
margin: auto 0;
h3 {
line-height: 1.2;
}
p {
margin: 5px 0;
line-height: 1.2;
}
}
}
}
.product-row {
display: flex;
flex-wrap: wrap;
* {
margin: auto 0;
}
.image {
width: 80px;
height: 50px;
margin-right: 10px;
margin-top: 0;
@media (min-width: 768px) {
width: 120px;
height: 70px;
margin-right: 20px;
margin-top: auto;
}
position: relative;
overflow: hidden;
border: 1px solid #f4f4f4;
img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
max-width: 100%;
max-height: 100%;
object-fit: cover;
}
}
.details {
max-width: calc(100% - 90px);
@media (min-width: 768px) {
max-width: calc(100% - 140px);
}
}
}