Skip to content

Commit

Permalink
Added styling back to show mouseover text for radio buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
DBFBlackbull committed Jan 22, 2024
1 parent c8a10cf commit 7db05a7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 24 deletions.
29 changes: 17 additions & 12 deletions ADnD_2E_Revised/2EStyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ textarea.sheet-input-like {
display: block;
}

/* Fake checkbox */
/*#region Fake checkbox*/
.charsheet label input[type="radio"],
.charsheet label input[type="checkbox"] {
display: inline-block; /* Display the checkbox to show mouse over text */
Expand Down Expand Up @@ -293,6 +293,21 @@ textarea.sheet-input-like {
content: "✓";
}

/* Actual checkbox aligned for mouseover text */
.charsheet label input[type="radio"],
.charsheet input[type="checkbox"] {
opacity: 0;
width: 16px;
height: 16px;
position: relative;
left: 14px;
margin-left: -10px;
margin-right: -6px;
cursor: pointer;
z-index: 1;
}
/*#endregion Fake checkbox*/

.charsheet input.sheet-tab1:checked ~ .sheet-section-character-page,
.charsheet input.sheet-tab2:checked ~ .sheet-section-monster-page,
.charsheet input.sheet-tab3:checked ~ .sheet-section-character-info,
Expand Down Expand Up @@ -503,6 +518,7 @@ textarea.sheet-input-like {
border-radius: 4px;
}

/* Tab styling */
.charsheet input[type="radio"] {
opacity: 0;
width: 120px;
Expand All @@ -511,17 +527,6 @@ textarea.sheet-input-like {
cursor: pointer;
z-index: 1;
}
.charsheet input[type="checkbox"] {
opacity: 0;
width: 16px;
height: 16px;
position: relative;
left: 14px;
margin-left: -10px;
margin-right: -6px;
cursor: pointer;
z-index: 1;
}

input.sheet-tab + span::before {
margin-right: 4px;
Expand Down
29 changes: 17 additions & 12 deletions ADnD_2E_Revised/css/2EStyle-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ textarea.sheet-input-like {
display: block;
}

/* Fake checkbox */
/*#region Fake checkbox*/
.charsheet label input[type="radio"],
.charsheet label input[type="checkbox"] {
display: inline-block; /* Display the checkbox to show mouse over text */
Expand Down Expand Up @@ -293,6 +293,21 @@ textarea.sheet-input-like {
content: "✓";
}

/* Actual checkbox aligned for mouseover text */
.charsheet label input[type="radio"],
.charsheet input[type="checkbox"] {
opacity: 0;
width: 16px;
height: 16px;
position: relative;
left: 14px;
margin-left: -10px;
margin-right: -6px;
cursor: pointer;
z-index: 1;
}
/*#endregion Fake checkbox*/

.charsheet input.sheet-tab1:checked ~ .sheet-section-character-page,
.charsheet input.sheet-tab2:checked ~ .sheet-section-monster-page,
.charsheet input.sheet-tab3:checked ~ .sheet-section-character-info,
Expand Down Expand Up @@ -503,6 +518,7 @@ textarea.sheet-input-like {
border-radius: 4px;
}

/* Tab styling */
.charsheet input[type="radio"] {
opacity: 0;
width: 120px;
Expand All @@ -511,17 +527,6 @@ textarea.sheet-input-like {
cursor: pointer;
z-index: 1;
}
.charsheet input[type="checkbox"] {
opacity: 0;
width: 16px;
height: 16px;
position: relative;
left: 14px;
margin-left: -10px;
margin-right: -6px;
cursor: pointer;
z-index: 1;
}

input.sheet-tab + span::before {
margin-right: 4px;
Expand Down

0 comments on commit 7db05a7

Please sign in to comment.