Skip to content

Commit

Permalink
Merge pull request #65 from grrrero/FLOE-540
Browse files Browse the repository at this point in the history
FLOE-540: Fixed markup for W3C validation
  • Loading branch information
michelled committed Feb 28, 2018
2 parents bc7a1b4 + e774766 commit 50e7821
Show file tree
Hide file tree
Showing 3 changed files with 293 additions and 578 deletions.
37 changes: 30 additions & 7 deletions css/style.css
Expand Up @@ -96,7 +96,7 @@ body {
.floe-header-tagline {
font-family: 'Open Sans', sans-serif;
font-size: 0.4em;
display:block;
display: block;
}

.floe .floe-nav ul li {
Expand Down Expand Up @@ -371,28 +371,51 @@ body {
color: #fccd00;
}

.arrow::before {
content: "\25B6";
}

.floe-resources-content {
list-style-type: none;
padding: 0.2em 0em 0em 2em;
padding: 0 0 1.5em 2em;
display: none;
}

.floe-resources-content p {
padding-bottom: 0.3em;
font-size: 1.2em;
padding: 0.5em 0;
margin: 0;
}

.floe-resources-content ul li {
padding-bottom: 0.5em;
.floe-resources-content li p {
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 1.2em;
}

.floe-resources-content-show {
display: block;
}

.floe-resources .floe-resources-content p>a {
.floe-resources-items {
list-style-type: none;
padding: 0.5em 0;
}

.floe-resources-content .floe-resources-items li {
padding: 0.7em 0;
}

.floe-resources-content .floe-resources-items li>a{
font-size: 1em;
font-weight: bold;
}

.floe-resources-content .floe-resources-items p {
font-size: 1em;
padding: 0.4em 0;
}

.floe-resources .floe-resources-content a {
border-bottom: none;
}
Expand Down
6 changes: 3 additions & 3 deletions js/resources.js
Expand Up @@ -5,7 +5,7 @@ $(document).ready(function(){
$( '.floe-resources-toggle' )
.attr('aria-expanded', true)
.closest('.floe-resources-category')
.find('ul')
.find('div')
.toggleClass('floe-resources-content-show', true);
});

Expand All @@ -14,7 +14,7 @@ $(document).ready(function(){
$( '.floe-resources-toggle' )
.attr('aria-expanded', false)
.closest('.floe-resources-category')
.find('ul')
.find('div')
.toggleClass('floe-resources-content-show', false);
});

Expand All @@ -24,7 +24,7 @@ $(document).ready(function(){
var state = target.attr('aria-expanded') === 'true' ? true : false;
target.attr('aria-expanded', !state)
.closest('.floe-resources-category')
.find('ul')
.find('div')
.toggleClass('floe-resources-content-show', !state);
evt.preventDefault();
});
Expand Down

0 comments on commit 50e7821

Please sign in to comment.