-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UHF-10464: Update editor with language settings and lates styles
- Loading branch information
1 parent
88fd1ca
commit 019b6c8
Showing
4 changed files
with
252 additions
and
42 deletions.
There are no files selected for viewing
59 changes: 57 additions & 2 deletions
59
modules/hdbt_cookie_banner/assets/css/cookie-banner-admin-ui.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,73 @@ | ||
#editor_holder { | ||
margin: 16px; | ||
/* Set max width to form */ | ||
.hdbt-cookie-banner { | ||
max-width: 1200px; | ||
} | ||
|
||
/* Not all form controls should be 100% wide, for example select elements are better at auto */ | ||
.form-control { | ||
width: auto; | ||
} | ||
|
||
/* Only inputs should be 100% wide */ | ||
input.form-control { | ||
width: 100%; | ||
} | ||
|
||
/* Hide unused cruft */ | ||
.json-editor-btntype-deletelast, | ||
.json-editor-btntype-deleteall, | ||
.h3.je-object__title:has([style*="display: none;"]+.sr-only), | ||
.btn-group.je-object__controls { | ||
display: none; | ||
} | ||
|
||
/* First level wells should not have grey background */ | ||
[data-schemapath="root"]>.well { | ||
background: transparent; | ||
border: 0 none; | ||
padding: 0; | ||
box-shadow: none; | ||
} | ||
|
||
/* Handle button width with grandparent grid that is inherited with subgrid */ | ||
div:has( > .je-object__container) { | ||
display: grid; | ||
grid-template-columns: [column-1] 1fr [column-2] auto; | ||
} | ||
|
||
/* Add separator line between elements */ | ||
.je-object__container + .je-object__container { | ||
border-top: 1px solid #ccc; | ||
} | ||
|
||
/* Inherit the grid from grandparent and set grid rows here */ | ||
:not([data-schemaid="root"]).je-object__container { | ||
grid-column: span 2; | ||
display: grid; | ||
grid-template-columns: subgrid; | ||
grid-template-rows: [row-1] 1fr [row-2] auto; | ||
} | ||
|
||
/* By default, take two columns on all elements */ | ||
.je-object__container > * { | ||
grid-column: 1 / span 2; | ||
} | ||
|
||
/* Title should be 1 column wide */ | ||
.je-object__container > .je-object__title { | ||
grid-column: 1 / span 1; | ||
grid-row: 1; | ||
} | ||
|
||
/* Btn group should be 1 column wide and on the first row */ | ||
.je-object__container > .btn-group { | ||
grid-column: 2 / span 1; | ||
grid-row: 1; | ||
margin-top: 18px; | ||
} | ||
|
||
/* JSON Textarea size */ | ||
textarea { | ||
width: 100%; | ||
height: 90dvh; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters