-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #446 from ZoeADavis/master
Added cursor types
- Loading branch information
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" href="./style.css" /> | ||
<title>Cursors - Zoe Davis</title> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="cursor-auto cursor-common">🖱️ Hover over me (auto)</div> | ||
<div class="cursor-default cursor-common">➡️ Hover over me (default)</div> | ||
<div class="cursor-crosshair cursor-common">🎯 Hover over me (crosshair)</div> | ||
<div class="cursor-wait cursor-common">⏳ Hover over me (wait)</div> | ||
<div class="cursor-text cursor-common">✏️ Hover over me (text)</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Raleway:300,400'); | ||
body { | ||
background: #e1e2dd; | ||
font-family: 'Raleway', sans-serif; | ||
} | ||
|
||
.cursor-common { | ||
width: 350px; | ||
height: 50px; | ||
font-size: 25px; | ||
transition: color 2s ease-out 100ms; | ||
} | ||
|
||
.cursor-common:hover { | ||
color: #7ae615; | ||
} | ||
|
||
.cursor-auto { | ||
cursor: auto; | ||
} | ||
|
||
.cursor-default { | ||
cursor: default; | ||
} | ||
|
||
.cursor-crosshair { | ||
cursor: crosshair; | ||
} | ||
|
||
.cursor-wait { | ||
cursor: wait; | ||
} | ||
|
||
.cursor-text { | ||
cursor: text; | ||
} | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 20px; | ||
height: 100vh; | ||
} |