Skip to content

Commit

Permalink
Issue #125: Expand sidebar edit to terms and accounts; add hooks.
Browse files Browse the repository at this point in the history
Fixes #125.
  • Loading branch information
laryn authored Apr 17, 2024
1 parent 8e594ab commit 104986e
Show file tree
Hide file tree
Showing 25 changed files with 349 additions and 154 deletions.
56 changes: 37 additions & 19 deletions dist/css/base/gin.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ button.link:active,
color: var(--gin-color-primary-active);
}

*|*:-webkit-any-link:not(svg|a) {
text-decoration: underline;
-webkit-text-decoration-style: var(--gin-link-decoration-style);
text-decoration-style: var(--gin-link-decoration-style);
}

*|*:any-link:not(svg|a) {
text-decoration: underline;
-webkit-text-decoration-style: var(--gin-link-decoration-style);
Expand Down Expand Up @@ -538,23 +544,23 @@ body:not(.toolbar-tray-open) .layout-container {
}

.gin-layer-wrapper > .form-wrapper:first-of-type .form-item,
.gin-layer-wrapper .layout-region-node-main > .form-wrapper:first-of-type .form-item,
.gin-layer-wrapper .layout-region-content-main > .form-wrapper:first-of-type .form-item,
.block-system-main-block > form > .form-wrapper:first-of-type .form-item,
.block-system-main-block > form .layout-region-node-main > .form-wrapper:first-of-type .form-item,
.block-system-main-block > form .layout-region-content-main > .form-wrapper:first-of-type .form-item,
.views-exposed-form.views-exposed-form > .form-wrapper:first-of-type .form-item,
.views-exposed-form.views-exposed-form .layout-region-node-main > .form-wrapper:first-of-type .form-item,
.views-exposed-form.views-exposed-form .layout-region-content-main > .form-wrapper:first-of-type .form-item,
.views-edit-view > .form-wrapper:first-of-type .form-item,
.views-edit-view .layout-region-node-main > .form-wrapper:first-of-type .form-item,
.views-edit-view .layout-region-content-main > .form-wrapper:first-of-type .form-item,
#views-preview-wrapper > .form-wrapper:first-of-type .form-item,
#views-preview-wrapper .layout-region-node-main > .form-wrapper:first-of-type .form-item,
#views-preview-wrapper .layout-region-content-main > .form-wrapper:first-of-type .form-item,
#views-entity-list > .form-wrapper:first-of-type .form-item,
#views-entity-list .layout-region-node-main > .form-wrapper:first-of-type .form-item,
#views-entity-list .layout-region-content-main > .form-wrapper:first-of-type .form-item,
.module-filter-update-status-form .table-filter > .form-wrapper:first-of-type .form-item,
.module-filter-update-status-form .table-filter .layout-region-node-main > .form-wrapper:first-of-type .form-item,
.module-filter-update-status-form .table-filter .layout-region-content-main > .form-wrapper:first-of-type .form-item,
.admin.my-workbench > .form-wrapper:first-of-type .form-item,
.admin.my-workbench .layout-region-node-main > .form-wrapper:first-of-type .form-item,
.admin.my-workbench .layout-region-content-main > .form-wrapper:first-of-type .form-item,
.media-library-views-form > .form-wrapper:first-of-type .form-item,
.media-library-views-form .layout-region-node-main > .form-wrapper:first-of-type .form-item {
.media-library-views-form .layout-region-content-main > .form-wrapper:first-of-type .form-item {
margin-top: 0;
}

Expand Down Expand Up @@ -943,9 +949,12 @@ details summary {
}

.views-edit-view h1.unit-title {
margin-block-start: 0;
margin-block-end: var(--gin-spacing-m);
padding-block-start: 0;
-webkit-margin-before: 0;
margin-block-start: 0;
-webkit-margin-after: var(--gin-spacing-m);
margin-block-end: var(--gin-spacing-m);
-webkit-padding-before: 0;
padding-block-start: 0;
}

#views-ui-preview-form > div > div,
Expand Down Expand Up @@ -1068,7 +1077,8 @@ details summary {
}

#views-display-menu-tabs a.views-display-disabled-link {
padding-inline-start: var(--gin-spacing-l);
-webkit-padding-start: var(--gin-spacing-l);
padding-inline-start: var(--gin-spacing-l);
}

#views-display-menu-tabs a.views-display-disabled-link::before {
Expand All @@ -1082,7 +1092,8 @@ details summary {
mask-size: contain;
width: var(--gin-spacing-l);
height: var(--gin-spacing-s);
margin-inline-start: calc(var(--gin-spacing-m) * -1);
-webkit-margin-start: calc(var(--gin-spacing-m) * -1);
margin-inline-start: calc(var(--gin-spacing-m) * -1);
background-color: currentColor;
display: inline-block;
content: "";
Expand Down Expand Up @@ -1375,10 +1386,12 @@ a.views-field-excluded {

.views-display-columns > * {
width: 32%;
margin-block-end: 0;
-webkit-margin-after: 0;
margin-block-end: 0;
margin-block: 0 var(--gin-spacing-l);
margin-inline: 0;
margin-inline-start: 2%;
-webkit-margin-start: 2%;
margin-inline-start: 2%;
}

[dir="ltr"] .views-display-columns > * {
Expand All @@ -1391,7 +1404,8 @@ a.views-field-excluded {

@media screen and (min-width: 60rem) {
.views-display-columns > :first-child {
margin-inline-start: 0;
-webkit-margin-start: 0;
margin-inline-start: 0;
}
}

Expand Down Expand Up @@ -2314,6 +2328,7 @@ a.tabledrag-handle:hover .handle {
.form-select,
.form-element--type-select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3e%3cpath fill='none' stroke-width='1.5' d='M1 1l6 6 6-6' stroke='%23545560'/%3e%3c/svg%3e");
background-repeat: no-repeat;
Expand Down Expand Up @@ -2360,6 +2375,7 @@ a.tabledrag-handle:hover .handle {
.form-checkbox,
.form-radio {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 21px;
height: 21px;
Expand Down Expand Up @@ -2887,7 +2903,7 @@ tr .form-item {
background-color: var(--gin-bg-item-hover);
}

.layout-region-node-main .form-wrapper {
.layout-region-content-main .form-wrapper {
background-color: transparent;
border: none;
}
Expand Down Expand Up @@ -3392,7 +3408,8 @@ ul .layout-condition a.layout-button-link {
background-color: transparent;
border-radius: var(--gin-border-s);
padding: calc(var(--gin-spacing-s) - (var(--gin-spacing-l) - var(--gin-spacing-s)) / 2) var(--gin-spacing-s);
margin-inline-start: var(--gin-spacing-xs);
-webkit-margin-start: var(--gin-spacing-xs);
margin-inline-start: var(--gin-spacing-xs);
}

.action-link > a:hover,
Expand Down Expand Up @@ -5587,6 +5604,7 @@ table.sticky-enabled {
text-decoration: none;
line-height: 1rem;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}

Expand Down
Loading

0 comments on commit 104986e

Please sign in to comment.