Skip to content

Commit

Permalink
Improve style
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Dec 6, 2023
1 parent 0ce5be0 commit 3ec4b7e
Showing 1 changed file with 80 additions and 15 deletions.
95 changes: 80 additions & 15 deletions admin/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ input[id*='color'] {
content: none !important;
}
[class*='ControlContainer'] > div {
/* border: 1px dashed var(--grey); */
background: transparent;
border: 0;
padding-bottom: 0 !important;
Expand Down Expand Up @@ -164,17 +163,12 @@ label + [class*='-DateTimeControl'] {
padding: 0 !important;
}

div > div[id*='blocks-field-'],
div > div[id*='hero-field-'] {
background-color: var(--lightgrey) !important;
border: 0 !important;
border-radius: 0 !important;
}

div > div[id*='blocks-field-'] > div:last-child:not(:empty) {
padding-bottom: var(--margin) !important;
}

/* TOPBAR */
[class*='-TopBarContainer'] {
background: var(--grey) !important;
Expand All @@ -198,6 +192,17 @@ div:has(> [class*='-ToggleContainer']) {
width: auto;
}

/* BODY */
div:has(> [role='textbox']) {
border-width: 0 1px 1px;
min-height: auto;
}
[class*='ControlPaneContainer']
> [class*='ControlContainer']:last-child
div:has(> [role='textbox']) {
min-height: 400px;
}

/* IMAGE FIELD */
[class*='-ImageWrapper-checkerboard'] {
float: left;
Expand Down Expand Up @@ -352,19 +357,22 @@ div[id^='documents-field'] {
[id^='video-field'] {
background-color: var(--lightgrey) !important;
}
[id^='video-field'] > div:nth-child(2) {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
[id^='video-field'] > div:nth-child(2) > div {
flex-basis: 49%;
clear: none;
float: left;
width: 49%;
}
[id^='video-field'] [class*='-ControlContainer']:has(> [for^='controls-field']),
[id^='video-field'] [class*='-ControlContainer']:has(> [for^='screenshot-field']),
[id^='video-field'] [class*='-ControlContainer']:has(> [for^='autoplay-field']) {
flex-basis: 33%;
[id^='video-field']
[class*='-ControlContainer']:has(> [for^='screenshot-field']),
[id^='video-field']
[class*='-ControlContainer']:has(> [for^='autoplay-field']) {
flex-direction: column;
width: 33%;
}
[id^='video-field']
[class*='-ControlContainer']:has(> [for^='transcription-field']) {
float: right;
}
[id^='video-field'] [class*='ControlContainer'] > div {
padding-left: 0;
Expand Down Expand Up @@ -408,6 +416,63 @@ div[id^='documents-field'] {
margin-bottom: 0;
}

/* BLOCKS */
div:has(> div[id^='blocks-field-']) {
border-top: 1px solid var(--grey);
padding-top: 30px;
margin-top: 30px !important;
}
div > div[id^='blocks-field-'] {
padding: 0 !important;
}
div > div[id^='blocks-field-'] [class*='-TopBarContainer'] {
background-color: var(--midgrey) !important;
margin: 0;
}
div > div[id^='blocks-field-'] > [class*='-TopBarContainer'] {
background-color: transparent !important;
padding: 0 !important;
}
div
> div[id^='blocks-field-']
[class*='-SortableListItem']
[class*='-SortableListItem']
> div {
background-color: transparent !important;
border: 0;
}
div
> div[id^='blocks-field-']
> [class*='-TopBarContainer']
> div:nth-child(1) {
display: none;
}
div > div[id^='blocks-field-'] > [class*='-TopBarContainer'] + div > div > div {
background-color: var(--lightgrey) !important;
border: 0;
}
div
> div[id^='blocks-field-']
[class*='-SortableListItem']
[class*='-SortableListItem'] {
background-color: var(--midgrey) !important;
}
div
> div[id^='blocks-field-']
> [class*='-TopBarContainer']
+ div
> div
> div:nth-of-type(1) {
background-color: var(--midgrey) !important;
}
div
> div[id^='blocks-field-']
> [class*='-TopBarContainer']
+ div
div:has(> [class*='-TopBarContainer']) {
padding: 0;
}

/* ASIDE */
[class*='-TreeNavLink-TreeNavLink'] > div > div:nth-child(2) {
display: none;
Expand Down

0 comments on commit 3ec4b7e

Please sign in to comment.