Skip to content

Commit

Permalink
Merge pull request #13565 from vince-roll20/nurato
Browse files Browse the repository at this point in the history
Naruto D20 Modern - optional logo and background
  • Loading branch information
NorWhal authored Dec 3, 2024
2 parents 1041d4b + 7711b66 commit 4f31f11
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
27 changes: 18 additions & 9 deletions Naruto d20 Modern/Naruto d20 Modern.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,35 @@
}

/* background toggle*/
.sheet-useBackground input[value="0"] ~ *.sheet-background {
input.sheet-useBackground[value="0"] ~ .sheet-background {
background-image:none;
background-color:#F3F8F6;
}

.sheet-useBackground input[value="1"] ~ *.sheet-background {
input.sheet-useBackground[value="1"] ~ .sheet-background {
background-image: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Naruto%20d20%20Modern/images/parchment_background.jpg");
background-size: cover;
outline: 2px solid #000;
}

.sheet-banner {
/* background-image:url('http://i.imgur.com/mGAvldF.png'); */
background-image:url('https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Naruto%20d20%20Modern/images/d20%20moodern%20logo.png');
background-repeat: no-repeat;
background-size: 100% 100%;
height:200px;
width:200px;
margin-left:auto;
margin-right:auto;
}

input.sheet-useLogo[value="0"] ~ .sheet-background .sheet-banner {
background-image: url('https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Naruto%20d20%20Modern/images/old_logo.png');
margin-top: -3em;
}

input.sheet-useLogo[value="1"] ~ .sheet-background .sheet-banner {
background-image: url('https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Naruto%20d20%20Modern/images/d20%20moodern%20logo.png');
}

/*----------- Tabs Setup -------------*/
.charsheet {
width:840px;
Expand Down Expand Up @@ -183,11 +191,12 @@ div.sheet-core-content {
}

.sheet-tableII th.sheet-heading {
background: #000;
color: white;
font-size: 9px;
text-align: center;
padding-inline: 5px;
background: #000;
color: white;
font-size: 9px;
font-weight: normal;
padding-inline: 5px;
text-align: center;
}

.sheet-tableIII th {
Expand Down
6 changes: 6 additions & 0 deletions Naruto d20 Modern/Naruto d20 Modern.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div class="sheet-useBackground">
<input type="hidden" class="sheet-useLogo" name="attr_logo" value="0" />
<input type="hidden" class="sheet-useBackground" name="attr_background" value="0" />
<div class="sheet-background">
<!--content-->
Expand Down Expand Up @@ -4779,6 +4780,11 @@ <h4>Abilities</h4>
<br>
</div>
<section class="sheet-options">
<span>Sheet Logo:</span>
<select name="attr_logo">
<option value="0" selected>Silhouette</option>
<option value="1">D20 Modern</option>
</select>
<span>Sheet Background:</span>
<select name="attr_background">
<option value="0" selected>None</option>
Expand Down

0 comments on commit 4f31f11

Please sign in to comment.