kopia lustrzana https://github.com/wagtail/wagtail
Update formatting - Prettier 3.0
- Run formatting with latest version of Prettierpull/10738/head
rodzic
614defa6f9
commit
35dfdea89c
|
@ -83,7 +83,10 @@
|
||||||
|
|
||||||
.ready .messages > ul,
|
.ready .messages > ul,
|
||||||
.messages.appear > ul {
|
.messages.appear > ul {
|
||||||
transition: top 0.5s ease, opacity 0.5s ease, max-height 1.2s ease;
|
transition:
|
||||||
|
top 0.5s ease,
|
||||||
|
opacity 0.5s ease,
|
||||||
|
max-height 1.2s ease;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,8 @@
|
||||||
|
|
||||||
$size-home-button: 3.5em;
|
$size-home-button: 3.5em;
|
||||||
$position: 2em;
|
$position: 2em;
|
||||||
$box-shadow-props: 0 0 1px 0 rgba(107, 214, 230, 1),
|
$box-shadow-props:
|
||||||
|
0 0 1px 0 rgba(107, 214, 230, 1),
|
||||||
0 1px 10px 0 rgba(107, 214, 230, 0.7);
|
0 1px 10px 0 rgba(107, 214, 230, 0.7);
|
||||||
$max-items: 12;
|
$max-items: 12;
|
||||||
$userbar-radius: 6px;
|
$userbar-radius: 6px;
|
||||||
|
|
|
@ -22,10 +22,12 @@ $chevron-inline-end-offset: math.div($select-size - $chevron-width, 2);
|
||||||
theme('colors.text-label') 66%,
|
theme('colors.text-label') 66%,
|
||||||
transparent 66%
|
transparent 66%
|
||||||
);
|
);
|
||||||
background-position: calc(100% - $chevron-top-offset - $chevron-width)
|
background-position:
|
||||||
$chevron-top-offset,
|
calc(100% - $chevron-top-offset - $chevron-width) $chevron-top-offset,
|
||||||
calc(100% - $chevron-inline-end-offset) $chevron-top-offset;
|
calc(100% - $chevron-inline-end-offset) $chevron-top-offset;
|
||||||
background-size: $chevron-width $chevron-width, $chevron-width $chevron-width;
|
background-size:
|
||||||
|
$chevron-width $chevron-width,
|
||||||
|
$chevron-width $chevron-width;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,9 @@ body {
|
||||||
&:after {
|
&:after {
|
||||||
content: '';
|
content: '';
|
||||||
position: fixed;
|
position: fixed;
|
||||||
transition: visibility 0s linear 0s, opacity 0.2s ease-out;
|
transition:
|
||||||
|
visibility 0s linear 0s,
|
||||||
|
opacity 0.2s ease-out;
|
||||||
background: theme('colors.white-50');
|
background: theme('colors.white-50');
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
|
|
||||||
width: 300px;
|
width: 300px;
|
||||||
display: block;
|
display: block;
|
||||||
transition: top 0.5s ease 0s, inset-inline-end 0.5s ease 0s,
|
transition:
|
||||||
|
top 0.5s ease 0s,
|
||||||
|
inset-inline-end 0.5s ease 0s,
|
||||||
height 0.5s ease 0s;
|
height 0.5s ease 0s;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
|
|
@ -22,8 +22,10 @@ $logo-size: 110px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: $logo-size;
|
width: $logo-size;
|
||||||
height: $logo-size;
|
height: $logo-size;
|
||||||
transition: transform 150ms cubic-bezier(0.28, 0.15, 0, 2.1),
|
transition:
|
||||||
width $menu-transition-duration ease, height $menu-transition-duration ease,
|
transform 150ms cubic-bezier(0.28, 0.15, 0, 2.1),
|
||||||
|
width $menu-transition-duration ease,
|
||||||
|
height $menu-transition-duration ease,
|
||||||
padding-top $menu-transition-duration ease;
|
padding-top $menu-transition-duration ease;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
/* global $ */
|
/* global $ */
|
||||||
|
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
|
||||||
import EventEmitter from 'events';
|
import EventEmitter from 'events';
|
||||||
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
import { escapeHtml as h } from '../../../utils/text';
|
import { escapeHtml as h } from '../../../utils/text';
|
||||||
import {
|
import {
|
||||||
initCollapsiblePanel,
|
initCollapsiblePanel,
|
||||||
|
@ -146,11 +146,11 @@ export class BaseSequenceChild extends EventEmitter {
|
||||||
<input type="hidden" name="${this.prefix}-deleted" value="">
|
<input type="hidden" name="${this.prefix}-deleted" value="">
|
||||||
<input type="hidden" name="${this.prefix}-order" value="${index}">
|
<input type="hidden" name="${this.prefix}-order" value="${index}">
|
||||||
<input type="hidden" name="${this.prefix}-type" value="${h(
|
<input type="hidden" name="${this.prefix}-type" value="${h(
|
||||||
this.type || '',
|
this.type || '',
|
||||||
)}">
|
)}">
|
||||||
<input type="hidden" name="${this.prefix}-id" value="${h(
|
<input type="hidden" name="${this.prefix}-id" value="${h(
|
||||||
this.id || '',
|
this.id || '',
|
||||||
)}">
|
)}">
|
||||||
<section class="w-panel w-panel--nested" id="${panelId}" aria-labelledby="${headingId}" data-panel>
|
<section class="w-panel w-panel--nested" id="${panelId}" aria-labelledby="${headingId}" data-panel>
|
||||||
<div class="w-panel__header">
|
<div class="w-panel__header">
|
||||||
<a class="w-panel__anchor w-panel__anchor--prefix" href="#${panelId}" aria-labelledby="${headingId}" data-panel-anchor>
|
<a class="w-panel__anchor w-panel__anchor--prefix" href="#${panelId}" aria-labelledby="${headingId}" data-panel-anchor>
|
||||||
|
|
|
@ -12,7 +12,8 @@ $c-transition-duration: 200ms;
|
||||||
|
|
||||||
.c-transition-push-enter {
|
.c-transition-push-enter {
|
||||||
transform: translateX(calc(var(--w-direction-factor) * 100%));
|
transform: translateX(calc(var(--w-direction-factor) * 100%));
|
||||||
transition: transform $c-transition-duration ease,
|
transition:
|
||||||
|
transform $c-transition-duration ease,
|
||||||
opacity $c-transition-duration linear;
|
opacity $c-transition-duration linear;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +25,8 @@ $c-transition-duration: 200ms;
|
||||||
|
|
||||||
.c-transition-push-leave {
|
.c-transition-push-leave {
|
||||||
transform: translateX(0);
|
transform: translateX(0);
|
||||||
transition: transform $c-transition-duration ease,
|
transition:
|
||||||
|
transform $c-transition-duration ease,
|
||||||
opacity $c-transition-duration linear;
|
opacity $c-transition-duration linear;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
@ -39,7 +41,8 @@ $c-transition-duration: 200ms;
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
.c-transition-pop-enter {
|
.c-transition-pop-enter {
|
||||||
transform: translateX(calc(var(--w-direction-factor) * -100%));
|
transform: translateX(calc(var(--w-direction-factor) * -100%));
|
||||||
transition: transform $c-transition-duration ease,
|
transition:
|
||||||
|
transform $c-transition-duration ease,
|
||||||
opacity $c-transition-duration linear;
|
opacity $c-transition-duration linear;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
@ -51,7 +54,8 @@ $c-transition-duration: 200ms;
|
||||||
|
|
||||||
.c-transition-pop-leave {
|
.c-transition-pop-leave {
|
||||||
transform: translateX(0);
|
transform: translateX(0);
|
||||||
transition: transform $c-transition-duration ease,
|
transition:
|
||||||
|
transform $c-transition-duration ease,
|
||||||
opacity $c-transition-duration linear;
|
opacity $c-transition-duration linear;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue