IEEE.org
|
IEEE Xplore Digital Library
|
IEEE Standards
|
IEEE Spectrum
|
More Sites
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Open at RIT
RIT Open Programs Website
Commits
dbaaee82
Commit
dbaaee82
authored
Jun 27, 2022
by
Amy Rose
Browse files
remove unnecessary double wrapper
parent
b1f1e48e
Pipeline
#858
passed with stage
in 3 minutes and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
_includes/checkbox-dropdown.html
View file @
dbaaee82
{% comment %}
TODO: documentation
Multiple wrappers necessary for CSS absolute positioning tricks.
{% endcomment %}
<div
class=
"checkbox-dropdown-wrapper-wrapper"
>
<div
class=
"checkbox-dropdown-wrapper"
>
<div
class=
"checkbox-dropdown"
>
<input
type=
"checkbox"
id=
"header-{{ include.name }}"
class=
"checkbox-header"
/>
<label
for=
"header-{{ include.name }}"
>
{{ include.label }}
</label>
<ul
class=
"checkbox-dropdown-list"
>
{% for option in include.options %}
<li>
<input
type=
"checkbox"
id=
"{{ option }}"
name=
"{{ include.name }}"
value=
"{{ option }}"
/>
<label
for=
"{{ option }}"
>
{{ option }}
</label>
</li>
{% endfor %}
</ul>
</div>
<div
class=
"checkbox-dropdown-container"
>
<div
class=
"checkbox-dropdown"
>
<input
type=
"checkbox"
id=
"header-{{ include.name }}"
class=
"checkbox-header"
/>
<label
for=
"header-{{ include.name }}"
>
{{ include.label }}
</label>
<ul
class=
"checkbox-dropdown-list"
>
{% for option in include.options %}
<li>
<input
type=
"checkbox"
id=
"{{ option }}"
name=
"{{ include.name }}"
value=
"{{ option }}"
/>
<label
for=
"{{ option }}"
>
{{ option }}
</label>
</li>
{% endfor %}
</ul>
</div>
</div>
_sass/includes/_checkbox-dropdown.scss
View file @
dbaaee82
...
...
@@ -4,9 +4,8 @@ $checkbox-dropdown-height: 2.5rem;
$checkbox-dropdown-padding
:
1em
;
$checkbox-size
:
1
.5em
;
.checkbox-dropdown-wrapper
{
height
:
0
;
margin-bottom
:
$checkbox-dropdown-height
;
.checkbox-dropdown-container
{
height
:
$checkbox-dropdown-height
;
}
.checkbox-dropdown
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment