Compare commits

...

2 Commits

Author SHA1 Message Date
clemtre e59c3e5e44 :root{@} 9 months ago
clemtre c17b6d6ad4 :root 9 months ago
  1. BIN
      .README.swp
  2. BIN
      .cssVarFilledCookies.css.swp
  3. 4
      README
  4. 7
      cssVarFilledCookies.css
  5. 18
      demo.html
  6. 14
      index.html
  7. 0
      style.css

BIN
.README.swp

Binary file not shown.

BIN
.cssVarFilledCookies.css.swp

Binary file not shown.

4
README

@ -5,7 +5,7 @@
/ \
css variables \/_ \ editable html table
_____________________________________
root { | |
:root { | |
--underline-style: wavy; |--underline-style : wavy |
--title-width: 10ch; |--title-width : 10ch |
--src: url('image.png'); |--src : url('image.png')|
@ -45,7 +45,7 @@ variables inside a root{} statement.
a css file with variables declared in this manner:
root {
:root {
--margin: 10px;
--gutter: 5px;
--background: white;

7
cssVarFilledCookies.css

@ -1,5 +1,6 @@
#cvfc p::after {content:"?"}
#cvfc:hover p::after {content:"!!!"}
#cvfc p::after {content:":root{@}"}
#cvfc:hover p::after {content:":root{"}
#cvfc:hover table::after {content:"}"}
#cvfc {
z-index:10000;
position:fixed;
@ -14,7 +15,7 @@
line-height:auto;
}
#cvfc * {color:black !important;font-size:16px; box-sizing:border-box;margin:0}
#cvfc tr {display:flex;justify-content:space-between; gap:0px;width:inherit}
#cvfc tr {padding-left:4ch; display:flex;justify-content:space-between; gap:0px;width:inherit}
#cvfc tr:nth-of-type(2n - 1) {background:white}
#cvfc td {background:transparent;position:relative;width:inherit;height:18px !important; white-space:nowrap}
#cvfc td:last-of-type{border-bottom:1px solid transparent; padding-left:10px}

18
demo.html

@ -61,7 +61,8 @@ the financial times of 1996, the article is called <em>This bug in your PC is a
--duration: 4s;
--width-footer:min(800px, 100%);
--indent:50px;
--conclusion:"Let's bake nicer cookies."
--conclusion:"Let's bake nicer cookies.";
--gradient-radius:40vw;
}
span{font-size:calc(var(--font-size) * 2);display:inline-block}
span:nth-of-type(3n){color:var(--colorA);}
@ -92,12 +93,17 @@ border-radius:100%;margin-bottom:auto
background:var(--background-text);
padding:var(--padding);
}
body {height:calc(100vh - 20px); display:flex;justify-content:center;align-items:center}
#cvfc{border-color:var(--colorA) !important;
animation:blink .3s linear;
animation-iteration-count:8;
background:lightcyan;
body {height:calc(100vh - 20px);
display:flex;justify-content:center;align-items:center;
background: radial-gradient(
circle at 25px 30px, var(--colorB),
var(--background) var(--gradient-radius))
}
#cvfc{
border-color:var(--colorA) !important;
background:white;
}
#cvfc:hover{color:black;background:lightcyan}
footer {position:fixed;bottom:10px;left:10px;max-width:var(--width-footer);}
footer p, footer span, ul{font-size:var(--font-size)}

14
index.html

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="cssVarCookies.css">
<script defer src="cssVarCookies.js"></script>
</head>
<body>
<p>Amet dignissimos nesciunt eum nobis quasi sequi blanditiis ipsa neque. Tempore quia libero dolorum eum voluptatem. Magni magnam repellat optio doloremque commodi? Accusamus corrupti totam aliquid veritatis temporibus Unde laboriosam.</p>
</body>
</html>

0
style.css

Loading…
Cancel
Save