9
Pure CSS To-Do
source link: https://codepen.io/Adir-SL/pen/rNwBmpM
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Pen Settings
HTML Preprocessor
Add Class(es) to <html>
Stuff for <head>
xxxxxxxxxx
<h1>To-do</h1>
<h2>To tick off an item, select its text and press <b>ctrl+B</b> (Windows) or <b>cmd+B</b> (Mac)</h2><br />
<div contenteditable>
<div>
Finish the codepen you started
</div>
<div>
Drink more coffee
</div>
</div>
xxxxxxxxxx
body {
font-family: sans-serif;
font-family: "Quicksand", sans-serif;
color: #333;
text-indent: 1.5em;
font-size: 1.1em;
background-color: #eee;
width: 96vw;
max-width: 600px;
margin: 0 auto;
}
h2 {
padding: 0 2em;
text-indent: 0;
opacity: 0.7;
font-size: 0.84em;
font-weight: normal;
}
span b {
color: #000;
}
h1 {
font-size: 3em;
xxxxxxxxxx
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK