This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.compose-form:has(.compose-form__upload__warning) .compose-form__publish .button, | |
.compose-form__upload__warning .icon-button { | |
border: medium dashed red; | |
} | |
.compose-form__upload-thumbnail:has(.compose-form__upload__warning) .compose-form__upload__actions .icon-button:has(.fa-pencil) { | |
border: medium dashed lime; | |
} | |
.compose-form:has(.compose-form__upload__warning) .compose-form__publish::before { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getPropValues = (prop) => { | |
const keywords = []; | |
const types = []; | |
const searcher = (node) => { | |
if (!node) return; | |
if (node.type === 'Keyword' && keywords.indexOf(node.name) === -1) { | |
keywords.push(node.name); | |
} else if (node.type === 'Group') { | |
node.terms.map(term => csstree.grammar.walk(term, { enter: searcher })); | |
} else if (node.type === 'Type') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This should work when you have the button in focus and press space on keyboard */ | |
/* See https://html.spec.whatwg.org/multipage/scripting.html#selector-active */ | |
/* Firefox currently won't behave properly there! */ | |
button:active { | |
background: lime; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="display:none;"><lj-cut><div style="display:none;"></lj-cut></div>Часть, видимая только в ленте, но не в посте<div style="display:none;"><lj-cut></div></lj-cut></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Testing empty values */ | |
.test:before { content: attr(class); } | |
.test { | |
border: var(--bar) solid; | |
} | |
.test_valid { | |
--bar: ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Oh hai, Selectors level 4! */ | |
/* https://drafts.csswg.org/selectors-4/ */ | |
/* Try this at http://nightly.webkit.org/ */ | |
div:before { | |
content: attr(class); | |
} | |
.a.b:not(.c) { | |
background: red; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Oh hai, Selectors level 4! */ | |
/* https://drafts.csswg.org/selectors-4/ */ | |
/* Try this at http://nightly.webkit.org/ */ | |
div:before { | |
content: attr(class); | |
} | |
.a.b:not(.c) { | |
background: red; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.test { | |
position: relative; | |
width: +100px; /* plus sign is allowed */ | |
height: +100px; | |
padding: 100px; | |
padding: -0px; /* Minus sign is allowed for zero */ | |
background: rgba(0,0,+255,1); /* plus sign is allowed */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Pooparty - view in Chrome for the full effect | |
*/ | |
@keyframes poop-dance { | |
from, 49% { transform-origin: -50% 100%; } | |
50%, 75%, to { transform-origin: 150% 100%; } | |
25% { transform: rotate(-10deg); } | |
50% { transform: rotate(0deg); } | |
75% { transform: rotate(10deg); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Pooparty - view in Chrome for the full effect | |
*/ | |
@keyframes poop-dance { | |
from, 49% { transform-origin: -50% 100%; } | |
50%, 75%, to { transform-origin: 150% 100%; } | |
25% { transform: rotate(-10deg); } | |
50% { transform: rotate(0deg); } | |
75% { transform: rotate(10deg); } |
NewerOlder