Skip to content

Commit

Permalink
Adding dark/light mode and fixing hintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
codepo8 committed May 3, 2022
1 parent 010215f commit c39cb62
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions demo-to-do/.hintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": ["development"],
"browserslist": "defaults, not IE 11"
}
12 changes: 9 additions & 3 deletions demo-to-do/index.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TODO app</title>
<link rel="stylesheet" href="styles/light-theme.css" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)">
<link rel="stylesheet" href="styles/light-theme.css"
media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)">
<link rel="stylesheet" href="styles/dark-theme.css" media="(prefers-color-scheme: dark)">
<link rel="stylesheet" href="styles/base.css">
<link rel="stylesheet" href="styles/to-do-styles.css">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>📋</text></svg>">
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>📋</text></svg>">
</head>
<output></output>

<body>
<form>
<img src="" alt="">
<div class="searchbar">
<label for="task">Tasks:</label>
<input id="task" autocomplete="off" type="text" placeholder="What do you want to do" pattern="[a-z|A-Z|0-9| ]+">
<input type="submit" value="send">
</div>
<ul id="tasks"></ul>
</form>
<output></output>

<script src="to-do.js"></script>
</body>

</html>
7 changes: 7 additions & 0 deletions demo-to-do/styles/base.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

body {
font-size: calc(1em + 1vw);
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
Expand All @@ -17,3 +18,9 @@ input, button {
font-family: inherit;
font-size: 0.8em;
}

@media print {
body::before {
content: 'Print version!';
}
}

0 comments on commit c39cb62

Please sign in to comment.