W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2019

Re: [csswg-drafts] [css-pseudo][MQ][css-env] Seasonal Theming (#4627)

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Thu, 26 Dec 2019 14:42:08 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-569069582-1577371326-sysbot+gh@w3.org>
Besides date and time (e. g. ISO 8601), one would also need some kind of information about the userʼs location (e. g. ISO 3166) .

~~~~ css
@env (date(-07-04) and location(us))
  or (date(-07-14) and location(fr)) {
      --color-1: red;
      --color-2: blue;
      --color-3: white;
} 
~~~~

~~~~ css
@date month = 7 {
  @date day = 4 or (1 week before) {
    @location us {
      color-scheme: red-white-blue;
    } 
  @date 7 < day =< 14 {
    @location fr {
      color-scheme: red-white-blue;
    } 
  } 
} 
~~~~

~~~~ css
@media local-season = winter {
   cursor: url("snowflakes.ani");
} 
~~~~

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4627#issuecomment-569069582 using your GitHub account
Received on Thursday, 26 December 2019 14:42:10 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:57 UTC