Skip to content

Commit 0c6475e

Browse files
committed
Add CSS Custom Properties for caching in head.html and remove migration comment from index.less
1 parent 7846f6f commit 0c6475e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

openlibrary/templates/site/head.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
<link href="/static/images/openlibrary-180x180.png" rel="apple-touch-icon" sizes="180x180" />
3232
<link href="/static/images/openlibrary-192x192.png" rel="icon" sizes="192x192" />
3333
<link href="/static/images/openlibrary-128x128.png" rel="icon" sizes="128x128" />
34+
$# CSS Custom Properties (design tokens) - loaded separately for caching
35+
<link href="$static_url('css/less/generated-custom-properties.css')" rel="stylesheet" type="text/css" />
3436
$ style = 'build/css/page-%s.css'%ctx.get('cssfile', 'user')
3537
<link href="$static_url(style)" rel="stylesheet" type="text/css" />
3638

static/css/less/index.less

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@
55
@import (less) "z-index.less";
66
@import (less) "border-radius.less";
77
@import (less) "borders.less";
8-
9-
// CSS Custom Properties for native CSS components (migration from Less)
10-
@import (inline) "generated-custom-properties.css";

0 commit comments

Comments
 (0)