Skip to content

Commit

Permalink
Merge branch '2.2' into 2
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jun 18, 2024
2 parents a1cdc99 + c8a38dc commit 464105c
Show file tree
Hide file tree
Showing 24 changed files with 638 additions and 990 deletions.
2 changes: 0 additions & 2 deletions .stylelintignore

This file was deleted.

2 changes: 1 addition & 1 deletion client/dist/styles/bundle.css

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions client/src/components/AssetDropzone/AssetDropzone.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
.asset-dropzone {
&::after {
&:after {
position: absolute;
top: 0;
right: #{0 - calc($grid-gutter-width / 2)};
bottom: 0;
left: #{0 - calc($grid-gutter-width / 2)};
inset: 0 #{0 - calc($grid-gutter-width / 2)} 0 #{0 - calc($grid-gutter-width / 2)};
background: rgba($body-bg, .9) url("../../images/drag_drop_opt.svg") center center no-repeat;
background-size: 312px 325px;
z-index: 100;
}

&.dragging {
&::after {
&:after {
content: "";
}
}
Expand Down
8 changes: 4 additions & 4 deletions client/src/components/BulkActions/BulkActions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $bulk-actions-width: 300px;
margin-bottom: 0;
height: 32px;

&[class*="font-icon-"]::before {
&[class*="font-icon-"]:before {
font-size: 20px;
line-height: 18px;
position: relative;
Expand Down Expand Up @@ -114,16 +114,16 @@ $bulk-actions-width: 300px;
padding-left: 22px;
position: relative;

&::before {
&:before {
position: absolute;
font-family: silverstripe;
font-family: "silverstripe";
left: 4px;
font-size: 14px;
vertical-align: middle;
margin-right: 4px;
}

&:nth-child(1)::before {
&:nth-child(1):before {
content: "g";
}
}
Expand Down
57 changes: 25 additions & 32 deletions client/src/components/GalleryItem/GalleryItem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ $gallery-item-label-height: 40px;
border-color: $border-color-light $border-color $border-color-dark;
width: $gallery-item-width;
border-radius: $border-radius-sm;
transition: box-shadow $transition-speed-fast;
height: $gallery-item-height;
transition: opacity 250ms linear;

Expand All @@ -17,7 +16,7 @@ $gallery-item-label-height: 40px;
cursor: pointer;
}

&:not(.gallery-item--error):not(.gallery-item--folder):hover .gallery-item--overlay {
&:not(.gallery-item--error, .gallery-item--folder):hover .gallery-item--overlay {
opacity: 1;
display: block;
}
Expand Down Expand Up @@ -72,7 +71,7 @@ $gallery-item-label-height: 40px;
margin: 20px 0 0 17px;
}

.file-status-icon__icon::before {
.file-status-icon__icon:before {
color: $blue;
font-size: 16px;
}
Expand Down Expand Up @@ -100,18 +99,20 @@ $gallery-item-label-height: 40px;
}

.gallery-item__thumbnail--loading {
background: white url("../../images/spinner.gif") center center no-repeat;
background: #fff url("../../images/spinner.gif") center center no-repeat;
}

/* stylelint-disable media-feature-name-no-unknown */
@media
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi),
only screen and (min-resolution: 2dppx) {
only screen and (resolution >= 192dpi),
only screen and (resolution >= 2dppx) {
.gallery-item__thumbnail--loading {
background: white url("../../images/spinner@2x.gif") center center no-repeat;
background: #fff url("../../images/spinner@2x.gif") center center no-repeat;
background-size: 43px 43px;
}
}
/* stylelint-enable media-feature-name-no-unknown */

.gallery-item__thumbnail--small {
background-size: auto;
Expand Down Expand Up @@ -159,7 +160,7 @@ $gallery-item-label-height: 40px;
display: none;
}

&::before {
&:before {
cursor: pointer;
top: 0;
bottom: 0;
Expand All @@ -179,7 +180,7 @@ $gallery-item-label-height: 40px;
}

.gallery-item__checkbox-label:not(.gallery-item__checkbox-label--disabled) {
.gallery-item--selectable &:hover::before {
.gallery-item--selectable &:hover:before {
border: 1px solid $component-active-border-color;
}
}
Expand All @@ -188,14 +189,14 @@ $gallery-item-label-height: 40px;
.gallery-item--error .gallery-item__checkbox-label,
.gallery-item__upload-progress + .gallery-item__title .gallery-item__checkbox-label {

&::before {
&:before {
font-size: 19px;
border: 0;
border-radius: 0;
padding: 0;
}

&:hover::before {
&:hover:before {
border: 0;
}
}
Expand All @@ -209,7 +210,7 @@ $gallery-item-label-height: 40px;
cursor: not-allowed;
}

.gallery-item__checkbox-label::before {
.gallery-item__checkbox-label:before {
color: $brand-danger;
}
}
Expand All @@ -232,19 +233,16 @@ $gallery-item-label-height: 40px;
.gallery-item__thumbnail {
position: relative;

&::after {
&:after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
inset: 0;
background: mix($white, $brand-danger, 20%);
border-radius: 2px 2px 0 0;
}
}

&:hover .gallery-item__thumbnail::after,
&:hover .gallery-item__thumbnail:after,
&:hover .gallery-item__error-message {
background: mix($white, $brand-danger, 10%);
}
Expand All @@ -267,7 +265,7 @@ $gallery-item-label-height: 40px;
padding-top: 56px;
text-align: center;

&::before {
&:before {
margin-right: .385rem;
position: relative;
top: .2rem;
Expand All @@ -277,7 +275,7 @@ $gallery-item-label-height: 40px;
.gallery-item--selected {
border-color: $component-active-border-color;

.gallery-item__checkbox-label::before {
.gallery-item__checkbox-label:before {
border-color: $component-active-border-color;
background-color: $component-active-border-color;
color: $white;
Expand Down Expand Up @@ -331,7 +329,7 @@ $gallery-item-label-height: 40px;
overflow: hidden;
background-color: $gray-300;

+ .gallery-item__title .gallery-item__checkbox-label::before {
+ .gallery-item__title .gallery-item__checkbox-label:before {
color: $body-color;
}
}
Expand Down Expand Up @@ -376,7 +374,7 @@ $gallery-item-label-height: 40px;
z-index: 1;
margin: 5px 0 0 5px;

&:hover::after {
&:hover:after {
font-size: $font-size-xxs;
font-weight: 200;
position: absolute;
Expand All @@ -391,7 +389,7 @@ $gallery-item-label-height: 40px;
background-color: $state-draft-bg;
border: 1px solid $state-draft;

&:hover::after {
&:hover:after {
content: "DRAFT";
}
}
Expand All @@ -400,7 +398,7 @@ $gallery-item-label-height: 40px;
background-color: $state-modified-bg;
border: 1px solid $state-modified;

&:hover::after {
&:hover:after {
content: "MODIFIED";
}
}
Expand All @@ -427,12 +425,10 @@ $gallery-item-label-height: 40px;
opacity: 1;
}
}

.gallery-item__drag-layer {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
inset: 0;
pointer-events: none;
z-index: 100;
}
Expand Down Expand Up @@ -483,10 +479,7 @@ $gallery-item-label-height: 40px;
.gallery-item__drag-shadow {
display: inline-block;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
inset: 0;
transform: translate(0.75rem, -0.75rem);
z-index: 103;
border: 2px solid $component-active-border-color;
Expand Down
76 changes: 36 additions & 40 deletions client/src/components/InsertEmbedModal/InsertEmbedModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,17 @@
$placement-image-width: 40px;
$placement-image-height: 36px;

&-label {
.form-check-label {
display: block;
cursor: pointer;

span {
display: block;

color: rgba($body-color, 0);
font-size: 0.9rem;
letter-spacing: 1px;
text-align: center;
text-transform: uppercase;

transition: color .1s ease-out;

&:before {
Expand All @@ -124,7 +122,7 @@
}
}

&-input {
.form-check-input {
position: absolute;
left: -9999px;

Expand All @@ -139,55 +137,53 @@
}
}

.option-val {
&--leftAlone { // sass-lint:disable-line class-name-format
+ span:before {
background-position-y: -$placement-image-height;
}
.option-val--leftAlone {
+ span:before {
background-position-y: -$placement-image-height;
}

&.checked + span:before {
background-position-y: 0;
}
&.checked + span:before {
background-position-y: 0;
}
}

&--center {
+ span:before {
background-position-y: 3 * -$placement-image-height;
}
.option-val--center {
+ span:before {
background-position-y: 3 * -$placement-image-height;
}

&.checked + span:before {
background-position-y: 2 * -$placement-image-height;
}
&.checked + span:before {
background-position-y: 2 * -$placement-image-height;
}
}

&--rightAlone { // sass-lint:disable-line class-name-format
+ span:before {
background-position-y: 5 * -$placement-image-height;
}
.option-val--rightAlone {
+ span:before {
background-position-y: 5 * -$placement-image-height;
}

&.checked + span:before {
background-position-y: 4 * -$placement-image-height;
}
&.checked + span:before {
background-position-y: 4 * -$placement-image-height;
}
}

&--left {
+ span:before {
background-position-y: 7 * -$placement-image-height;
}
.option-val--left {
+ span:before {
background-position-y: 7 * -$placement-image-height;
}

&.checked + span:before {
background-position-y: 6 * -$placement-image-height;
}
&.checked + span:before {
background-position-y: 6 * -$placement-image-height;
}
}

&--right {
+ span:before {
background-position-y: 9 * -$placement-image-height;
}
.option-val--right {
+ span:before {
background-position-y: 9 * -$placement-image-height;
}

&.checked + span:before {
background-position-y: 8 * -$placement-image-height;
}
&.checked + span:before {
background-position-y: 8 * -$placement-image-height;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
height: $toolbar-button-height + (2 * $toolbar-button-padding);
width: $toolbar-button-width + (2 * $toolbar-button-padding);
overflow: hidden;
color: $white;
background: $black;
opacity: 0.55;
color: $white;
Expand Down
Loading

0 comments on commit 464105c

Please sign in to comment.