2021-12-15 15:34:31 +08:00
|
|
|
.class {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
|
|
|
|
.local1,
|
|
|
|
.local2 :global .global,
|
|
|
|
.local3 {
|
|
|
|
color: green;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global .global :local .local4 {
|
|
|
|
color: yellow;
|
|
|
|
}
|
|
|
|
|
2021-12-15 16:03:06 +08:00
|
|
|
.local5:global(.global).local6 {
|
2021-12-15 15:34:31 +08:00
|
|
|
color: blue;
|
2021-12-15 16:03:06 +08:00
|
|
|
}
|
2021-12-15 15:34:31 +08:00
|
|
|
|
2023-03-27 01:31:57 +08:00
|
|
|
.local7 div:not(.disabled, .mButtonDisabled, .tipOnly) {
|
2023-03-27 02:14:48 +08:00
|
|
|
pointer-events: initial !important;
|
2023-03-27 01:31:57 +08:00
|
|
|
}
|
|
|
|
|
2023-03-27 16:11:53 +08:00
|
|
|
.local8 :is(div.parent1.child1.vertical-tiny,
|
|
|
|
div.parent1.child1.vertical-small,
|
|
|
|
div.otherDiv.horizontal-tiny,
|
|
|
|
div.otherDiv.horizontal-small div.description) {
|
|
|
|
max-height: 0;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2023-03-28 15:54:20 +08:00
|
|
|
.local9 :matches(div.parent1.child1.vertical-tiny,
|
|
|
|
div.parent1.child1.vertical-small,
|
|
|
|
div.otherDiv.horizontal-tiny,
|
|
|
|
div.otherDiv.horizontal-small div.description) {
|
|
|
|
max-height: 0;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.local10 :where(div.parent1.child1.vertical-tiny,
|
|
|
|
div.parent1.child1.vertical-small,
|
|
|
|
div.otherDiv.horizontal-tiny,
|
|
|
|
div.otherDiv.horizontal-small div.description) {
|
|
|
|
max-height: 0;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.local11 div:has(.disabled, .mButtonDisabled, .tipOnly) {
|
|
|
|
pointer-events: initial !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.local12 div:current(p, span) {
|
|
|
|
background-color: yellow;
|
|
|
|
}
|
|
|
|
|
|
|
|
.local13 div:past(p, span) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.local14 div:future(p, span) {
|
|
|
|
background-color: yellow;
|
|
|
|
}
|
|
|
|
|
|
|
|
.local15 div:-moz-any(ol, ul, menu, dir) {
|
|
|
|
list-style-type: square;
|
|
|
|
}
|
|
|
|
|
|
|
|
.local16 li:-webkit-any(:first-child, :last-child) {
|
|
|
|
background-color: aquamarine;
|
|
|
|
}
|
|
|
|
|
2021-12-15 16:03:06 +08:00
|
|
|
:global(:global(:local(.nested1)).nested2).nested3 {
|
2021-12-15 15:34:31 +08:00
|
|
|
color: pink;
|
2021-12-15 16:03:06 +08:00
|
|
|
}
|
2021-12-15 15:34:31 +08:00
|
|
|
|
2021-12-17 03:42:44 +08:00
|
|
|
#ident {
|
|
|
|
color: purple;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes localkeyframes {
|
|
|
|
0% {
|
|
|
|
left: var(--pos1x);
|
|
|
|
top: var(--pos1y);
|
|
|
|
color: var(--theme-color1);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
left: var(--pos2x);
|
|
|
|
top: var(--pos2y);
|
|
|
|
color: var(--theme-color2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes localkeyframes2 {
|
2021-12-15 15:34:31 +08:00
|
|
|
0% {
|
2021-12-17 03:42:44 +08:00
|
|
|
left: 0;
|
2021-12-15 15:34:31 +08:00
|
|
|
}
|
|
|
|
100% {
|
2021-12-17 03:42:44 +08:00
|
|
|
left: 100px;
|
2021-12-15 15:34:31 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.animation {
|
|
|
|
animation-name: localkeyframes;
|
2021-12-17 03:42:44 +08:00
|
|
|
animation: 3s ease-in 1s 2 reverse both paused localkeyframes, localkeyframes2;
|
|
|
|
--pos1x: 0px;
|
|
|
|
--pos1y: 0px;
|
|
|
|
--pos2x: 10px;
|
|
|
|
--pos2y: 20px;
|
|
|
|
}
|
2021-12-15 22:46:13 +08:00
|
|
|
|
|
|
|
/* .composed {
|
|
|
|
composes: local1;
|
|
|
|
composes: local2;
|
|
|
|
} */
|
|
|
|
|
2021-12-17 03:42:44 +08:00
|
|
|
.vars {
|
2021-12-15 22:46:13 +08:00
|
|
|
color: var(--local-color);
|
|
|
|
--local-color: red;
|
|
|
|
}
|
|
|
|
|
|
|
|
.globalVars :global {
|
|
|
|
color: var(--global-color);
|
|
|
|
--global-color: red;
|
2021-12-17 03:42:44 +08:00
|
|
|
}
|
2022-04-14 23:33:00 +08:00
|
|
|
|
|
|
|
@media (min-width: 1600px) {
|
|
|
|
.wideScreenClass {
|
|
|
|
color: var(--local-color);
|
|
|
|
--local-color: green;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-27 21:21:44 +08:00
|
|
|
@media screen and (max-width: 600px) {
|
|
|
|
.narrowScreenClass {
|
|
|
|
color: var(--local-color);
|
|
|
|
--local-color: purple;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-14 23:33:00 +08:00
|
|
|
@supports (display: grid) {
|
|
|
|
.displayGridInSupports {
|
|
|
|
display: grid;
|
|
|
|
}
|
|
|
|
}
|
2022-05-27 21:21:44 +08:00
|
|
|
|
|
|
|
@supports not (display: grid) {
|
|
|
|
.floatRightInNegativeSupports {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@supports (display: flex) {
|
|
|
|
@media screen and (min-width: 900px) {
|
|
|
|
.displayFlexInMediaInSupports {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: 900px) {
|
|
|
|
@supports (display: flex) {
|
|
|
|
.displayFlexInSupportsInMedia {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-04-06 07:09:08 +08:00
|
|
|
|
|
|
|
@MEDIA screen and (min-width: 900px) {
|
|
|
|
@SUPPORTS (display: flex) {
|
|
|
|
.displayFlexInSupportsInMediaUpperCase {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.animationUpperCase {
|
|
|
|
ANIMATION-NAME: localkeyframesUPPERCASE;
|
|
|
|
ANIMATION: 3s ease-in 1s 2 reverse both paused localkeyframesUPPERCASE, localkeyframes2UPPPERCASE;
|
|
|
|
--pos1x: 0px;
|
|
|
|
--pos1y: 0px;
|
|
|
|
--pos2x: 10px;
|
|
|
|
--pos2y: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@KEYFRAMES localkeyframesUPPERCASE {
|
|
|
|
0% {
|
|
|
|
left: VAR(--pos1x);
|
|
|
|
top: VAR(--pos1y);
|
|
|
|
color: VAR(--theme-color1);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
left: VAR(--pos2x);
|
|
|
|
top: VAR(--pos2y);
|
|
|
|
color: VAR(--theme-color2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@KEYframes localkeyframes2UPPPERCASE {
|
|
|
|
0% {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
left: 100px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
:GLOBAL .globalUpperCase :LOCAL .localUpperCase {
|
|
|
|
color: yellow;
|
|
|
|
}
|
|
|
|
|
|
|
|
.VARS {
|
|
|
|
color: VAR(--LOCAL-COLOR);
|
|
|
|
--LOCAL-COLOR: red;
|
|
|
|
}
|
|
|
|
|
|
|
|
.globalVarsUpperCase :GLOBAL {
|
|
|
|
COLOR: VAR(--GLOBAR-COLOR);
|
|
|
|
--GLOBAR-COLOR: red;
|
|
|
|
}
|
2023-04-17 20:14:40 +08:00
|
|
|
|
|
|
|
@supports (top: env(safe-area-inset-top, 0)) {
|
|
|
|
.inSupportScope {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
}
|
2023-04-13 01:32:38 +08:00
|
|
|
|
|
|
|
.a {
|
|
|
|
animation: 3s animationName;
|
|
|
|
-webkit-animation: 3s animationName;
|
|
|
|
}
|
|
|
|
|
|
|
|
.b {
|
|
|
|
animation: animationName 3s;
|
|
|
|
-webkit-animation: animationName 3s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.c {
|
|
|
|
animation-name: animationName;
|
|
|
|
-webkit-animation-name: animationName;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d {
|
|
|
|
--animation-name: animationName;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes animationName {
|
|
|
|
0% {
|
|
|
|
background: white;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
background: red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@-webkit-keyframes animationName {
|
|
|
|
0% {
|
|
|
|
background: white;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
background: red;
|
|
|
|
}
|
|
|
|
}
|
2023-04-13 01:46:19 +08:00
|
|
|
|
|
|
|
@-moz-keyframes mozAnimationName {
|
|
|
|
0% {
|
|
|
|
background: white;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
background: red;
|
|
|
|
}
|
|
|
|
}
|