Comments (5)
We should use more than one!
I suggested this in #core-editor. It would be so easy to do editor styles if they were Custom Properties.
I used a polyfill for older browsers, but I used them extensively in a theme I wrote this past year.
from twentynineteen.
@mor10 Can you think of a way to use one? Since we still have to support IE11, it's difficult without a polyfill, but what if there were a progressive enhancement, such as background-blend-mode or something for modern browsers? If we use a variable there, we don't have to worry about IE11.
from twentynineteen.
@mor10
Can you put a variable in for the featured image mix-blend-mode
? There is already alternate support for the old browsers, so that's a case where there would be only modern browsers using it.
from twentynineteen.
We don't need to put an actual functional variable in the code. It could just be a color that falls back on a hard-coded color:
:root {
--key-color: #4169E1;
}
.entry-title {
color: #4169E1 /* fallback for older browsers */
color: var(--key-color);
}
Of course this could (and probably should) be expanded to handle color schemes if this theme ships with them, but that's a lot more complex. Starting small still makes a huge difference.
from twentynineteen.
I don't believe this ended up happening for launch, due the compressed timeline and other priorities. I'm going to close this issue rather than migrate it over to Trac, as it's not quite actionable at this stage. If anyone has ideas for using one of the custom properties mentioned moving forward, feel free to open up a Trac ticket for discussion.
Thank you!
from twentynineteen.
Related Issues (20)
- Video embed issues HOT 1
- Keyboard menu showing with touch menu on Mobile HOT 2
- Packagist and NPMJS HOT 1
- Editor vs. Preview/Front end alignments of blocks in columns. HOT 1
- Baskerville Old Face is a poor font choice for Windows HOT 4
- Metaboxes are overlapping the Block editor HOT 5
- Convert references to 'classic editor' and 'block editor' to proper nouns HOT 2
- Heading not aligned with the rest of the content HOT 3
- Two column block: sub-blocks not aligned in mobile view HOT 1
- No version number in doc block HOT 3
- Update version numbers for 5.0.2 release to sync with Core SVN
- .button class doesn't override link color HOT 1
- Search widget input field width is too narrow on wide screens HOT 1
- alignwide in editor causes horizontal scroll HOT 1
- Firefox Dropcap margin mismatch [Proposed Solution] HOT 2
- touch-keyboard-navigation.js conflicts with some lightboxes HOT 1
- After a word written in italic, inverted commas appear wrongly HOT 1
- Deleting all sass files HOT 2
- touch-keyboard-navigation.js breaks scrolling past links on touch HOT 2
- where are the SCSS files for the style-RTL.css HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twentynineteen.