mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 04:59:40 +00:00
* added responsive scss to allow modals to respond to changing window size * Remove unecessary space * moved scss around * remove unnecessary space * Adjust left and right panels to be more responsive + moved css for buyQuestModal into its respective vue file (startQuestModal css wasn't working in its vue file... I can't figure out why) * removed important to get rid of extra scrollbar * moved css all to one file
120 lines
No EOL
2.2 KiB
SCSS
120 lines
No EOL
2.2 KiB
SCSS
|
|
@import '~client/assets/scss/colors.scss';
|
|
|
|
@mixin centeredModal() {
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
|
|
header, footer {
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
.modal-dialog {
|
|
width: auto;
|
|
|
|
.title {
|
|
min-height: 24px;
|
|
margin-top: 24px;
|
|
font-family: 'Roboto Condensed';
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
line-height: 1.2;
|
|
text-align: center;
|
|
color: $gray-50;
|
|
}
|
|
|
|
.text {
|
|
min-height: 60px;
|
|
font-family: Roboto;
|
|
font-size: 14px;
|
|
line-height: 1.43;
|
|
text-align: center;
|
|
color: $gray-100;
|
|
overflow-y: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
#start-quest-modal, #buy-quest-modal {
|
|
@media only screen and (max-width: 1200px) {
|
|
.modal-dialog {
|
|
max-width: 33%;
|
|
|
|
.left-panel {
|
|
left: initial;
|
|
width: 100%;
|
|
right: 100%;
|
|
|
|
.col-4 {
|
|
width: 100px;
|
|
}
|
|
}
|
|
|
|
.side-panel, .right-sidebar {
|
|
left: calc(100% - 10px);
|
|
max-width: 100%;
|
|
right: initial;
|
|
|
|
.questRewards {
|
|
width: 90%;
|
|
|
|
.reward-item {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 1000px) {
|
|
.modal-dialog {
|
|
max-width: 80%;
|
|
width: 80% !important;
|
|
|
|
.modal-body {
|
|
flex-direction: column;
|
|
display: flex;
|
|
|
|
div:nth-child(1) { order: 3; }
|
|
div:nth-child(2) { order: 1; }
|
|
div:nth-child(3) { order: 4; }
|
|
div:nth-child(4) { order: 5; }
|
|
div:nth-child(5) { order: 2; }
|
|
|
|
.left-panel {
|
|
border-radius: 8px;
|
|
position: static;
|
|
right: initial;
|
|
margin: 20px 0;
|
|
height: auto;
|
|
width: 100%;
|
|
z-index: 0;
|
|
order: 3;
|
|
|
|
.col-4 {
|
|
max-width: 100px;
|
|
}
|
|
}
|
|
|
|
.side-panel, .right-sidebar {
|
|
margin: 20px 0 0 0;
|
|
position: static;
|
|
box-shadow: none;
|
|
height: auto;
|
|
width: 100%;
|
|
z-index: 0;
|
|
order: 2;
|
|
left: 0;
|
|
|
|
.questRewards {
|
|
padding: 0 2em 2em 2em;
|
|
width: 100%;
|
|
z-index: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |