footer fixes + tweaks
This commit is contained in:
lesleyjanenorton 2018-06-10 14:16:42 -05:00
Родитель a76bb687d2
Коммит 3bf0c1869f
3 изменённых файлов: 61 добавлений и 47 удалений

Просмотреть файл

@ -1,8 +1,5 @@
{
"extends": "stylelint-config-standard",
"ignoreFiles": [
"public/css/vendor/*.css"
],
"rules": {
"no-descending-specificity": null
}

Просмотреть файл

@ -36,6 +36,12 @@ p {
/* legacy foundation css with minor mods */
/* *,
::after,
::before {
box-sizing: inherit;
} */
h3 {
font-size: 1.9375rem;
}
@ -75,6 +81,11 @@ a {
color: #0060df;
text-decoration: none;
cursor: pointer;
transition: all cubic-bezier(.07,.95,0,1)
}
a:hover {
transition: all cubic-bezier(.07,.95,0,1);
}
.input-group-field {
@ -221,7 +232,8 @@ h5 {
height: 10vh;
}
.top-bar {
.top-bar,
footer {
flex-wrap: nowrap;
display: flex;
align-items: center;
@ -229,7 +241,7 @@ h5 {
.top-bar,
.section-container,
#footer {
footer {
padding-left: calc(4.33vw + 0.625rem);
padding-right: calc(4.33vw + 0.625rem);
}
@ -550,7 +562,14 @@ form span {
text-align: center;
position: relative;
border: 1px solid #002275;
border-radius: 2px;
border-radius: 4px;
background: rgba(0, 0, 0, 0);
transition: all 0.25s ease-out;
}
.tip:hover {
background: rgba(0, 0, 0, 0.03);
transition: all 0.25s ease-out;
}
.tip p {
@ -569,6 +588,8 @@ form span {
color: white;
padding-top: calc(45px + 1.95vw);
padding-bottom: calc(10px + 0.55vw);
border-top-right-radius: 3px;
border-top-left-radius: 3px;
}
.tip-header h4 {
@ -599,6 +620,7 @@ form span {
right: 0;
margin: 0 auto;
color: #002275;
box-sizing: border-box;
}
.svg-background img {
@ -607,7 +629,7 @@ form span {
}
#false-door {
position: fixed;
position: absolute;
top: 0;
left: 0;
right: 0;
@ -821,12 +843,16 @@ span.breach-info {
}
#header-button #sign-up {
background-color: #003eaa;
background-color: #0052be;
margin-left: calc(10px + 0.25vh + 0.25vw);
margin-bottom: 0;
height: 55px;
}
#header-button #sign-up:hover {
background-color: #00399c;
}
.top-bar .section-wrapper {
display: flex;
flex-direction: row;
@ -834,60 +860,53 @@ span.breach-info {
flex-wrap: nowrap;
}
/* footer */
#footer {
footer {
background-color: #fff;
height: 10vh;
max-height: 150px;
display: flex;
justify-content: center;
align-content: center;
}
#footer p {
footer p {
font-size: 12px;
}
#footer a {
footer a {
font-weight: 400;
color: #000;
}
#footer .section-wrapper {
footer a:hover {
color: #000000b3;
}
footer .section-wrapper {
display: inline-flex;
flex-flow: row;
justify-content: space-between;
color: #000;
height: 100%;
}
.footer-left {
display: flex;
flex-flow: row;
width: 40%;
align-items: center;
align-content: center;
}
.footer-left,
.footer-right {
display: inline-flex;
width: 31.333%;
display: flex;
align-items: center;
width: 31.333%;
text-align: left;
}
.link-wrapper {
display: inline-flex;
width: 100%;
flex-basis: 38%;
justify-content: center;
.footer-left a {
margin-right: 2em;
}
.footer-left a:first-of-type {
.footer-nav {
display: inline-flex;
flex-basis: 40%;
justify-content: space-around;
}
.footer-logo-wrapper {
flex-basis: 33.333%;
}
#footer img {
max-width: 150px;
min-width: 120px;
max-width: 170px;
margin-right: 1em;
}

Просмотреть файл

@ -16,7 +16,6 @@
<h1><img alt="Firefox Logo" class="logo" src="/img/firefox.png" /><span class="medium">Firefox</span> Monitor</h1>
</a>
</div>
{{#if breach}}
<div class="top-bar-right">
{{> sign_up_header }}
@ -26,20 +25,19 @@
</header>
{{{ body }}}
<div id="footer">
<footer>
<div class="section-wrapper">
<div class="footer-left">
<a href="https://www.mozilla.org" alt="Mozilla"><img src="/img/moz-logo-bw-rgb.svg" alt="Mozilla Logo"></a>
<div class="link-wrapper">
<a href="https://www.mozilla.org/en-US/about/legal/" alt="Mozilla Legal">Terms</a>
<a href="https://www.mozilla.org/en-US/privacy/websites/" alt="Mozilla Privacy">Privacy</a>
</div>
<a class="footer-logo-wrapper" href="https://www.mozilla.org"><img src="/img/moz-logo-bw-rgb.svg" alt="Mozilla Logo"></a>
<a href="https://www.mozilla.org/about/legal/" alt="Mozilla Legal">Terms</a>
<a href="https://www.mozilla.org/privacy/websites/" alt="Mozilla Privacy">Privacy</a>
</div>
<div class="footer-right">
<p>Portions of this content are &copy; 1998-2018 by individual mozilla.org contributors. Content available under a <a href="https://www.mozilla.org/en-US/foundation/licensing/website-content/" alt="Creative Commons license">Creative Commons license</a>.</p>
<p>Portions of this content are &copy; 1998-2018 by individual mozilla.org contributors. Content available under a <a href="https://www.mozilla.org/en-US/foundation/licensing/website-content/">Creative Commons license</a>.</p>
</div>
</div>
</div>
</footer>
</body>
</html>