Skip to content

Commit

Permalink
Add bg
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioSergioDM committed Jan 19, 2024
1 parent cdeb464 commit e63d701
Show file tree
Hide file tree
Showing 34 changed files with 75 additions and 69 deletions.
140 changes: 73 additions & 67 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -1,68 +1,74 @@
body {
background-image: url("../img/bg.jpg");
background-size: cover;
}


ul.characters_list {
list-style-type: none;
}
ul.characters_list li {
display: inline-block;
}
ul.characters_list li input[type="checkbox"] {
display: none;
}
label {
border: 1px solid #fff;
padding: 10px;
display: block;
position: relative;
margin: 10px;
cursor: pointer;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
label::before {
background-color: white;
color: white;
content: " ";
display: block;
border-radius: 50%;
border: 1px solid grey;
position: absolute;
top: -5px;
left: -5px;
width: 25px;
height: 25px;
text-align: center;
line-height: 28px;
transition-duration: 0.4s;
transform: scale(0);
}
label img {
border-radius: 10%;
height: 100px;
width: 100px;
transition-duration: 0.2s;
transform-origin: 50% 50%;
}
:checked+label {
border-color: #ddd;
}
:checked+label::before {
content: "✓";
background-color: grey;
transform: scale(1);
}
:checked+label img {
transform: scale(0.9);
box-shadow: 0 0 5px #333;
z-index: -1;
}
list-style-type: none;
}

ul.characters_list li {
display: inline-block;
}

ul.characters_list li input[type="checkbox"] {
display: none;
}

label {
border: 1px solid #fff;
padding: 10px;
display: block;
position: relative;
margin: 10px;
cursor: pointer;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

label::before {
background-color: white;
color: white;
content: " ";
display: block;
border-radius: 50%;
border: 1px solid grey;
position: absolute;
top: -5px;
left: -5px;
width: 25px;
height: 25px;
text-align: center;
line-height: 28px;
transition-duration: 0.4s;
transform: scale(0);
}

label img {
border-radius: 10%;
height: 100px;
width: 100px;
transition-duration: 0.2s;
transform-origin: 50% 50%;
}

:checked+label {
border-color: #ddd;
}

:checked+label::before {
content: "✓";
background-color: grey;
transform: scale(1);
}

:checked+label img {
transform: scale(0.9);
box-shadow: 0 0 5px #333;
z-index: -1;
}
Binary file added img/bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ <h1>Werewolves of Miller's Hollow</h1>
<li>
<input type="checkbox" id="werewolves">
<label for="werewolves">
<img src="img/werewolves.png" />
<img src="img/chars/werewolves.png" />
</label>
</li>
<li>
<input type="checkbox" id="seer">
<label for="seer">
<img src="img/seer.png" />
<img src="img/chars/seer.png" />
</label>
</li>
</ul>
Expand Down

0 comments on commit e63d701

Please sign in to comment.