Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colors theme: Fix layout issues #1448

Merged
merged 6 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 30 additions & 6 deletions packages/modules/web_themes/colors/source/src/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ body>.container {
/* No media query since this is the default in Bootstrap */
html {
font-size: 12px;
.settingscolumn {
grid-column: span 12;
}
}


@media screen and (min-width: 240px) {
html {
font-size: 13px;
Expand Down Expand Up @@ -81,6 +86,9 @@ html {
@media screen and (min-width: 992px) {
html {
font-size: 11px;
.settingscolumn {
grid-column: span 4;
}
}
}
/* Extra large devices (very large desktops, 1200px and up) */
Expand Down Expand Up @@ -309,11 +317,23 @@ body>.container-fluid {
.grid-col-12 {
grid-column: span 12;
}
.subgrid {
display:grid;
grid-column: 1 / 13;
grid-template-columns: subgrid;
justify-content: top;

@supports (grid-template-columns: subgrid) {
.subgrid {
display:grid;
grid-column: span 12;
grid-template-columns: subgrid;
justify-content: top;
}
}
@supports not (grid-template-columns: subgrid) {
.subgrid {
display:grid;
grid-column: span 12;
grid-template-columns: auto auto auto auto auto auto auto auto auto auto auto auto;
justify-content: top;
width: 100%;
}
}
.grid-left {
justify-self: start;
Expand Down Expand Up @@ -365,4 +385,8 @@ swiper-slide {

option {
color: blue;
}
}
.ttarea .ttmessage {visibility: hidden}
.ttarea:hover .ttmessage {
visibility: visible;
}
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ function writeCookie() {
prefs.debug = globalConfig.debug

document.cookie =
'openWBColorTheme=' + JSON.stringify(prefs) + '; max-age=16000000'
'openWBColorTheme=' +
JSON.stringify(prefs) +
';max-age=16000000;samesite=strict'
}

function readCookie() {
Expand Down
Loading