Update UI & Responsive

This commit is contained in:
Mark Liang 2017-07-25 14:12:26 +08:00
parent 4b8445191b
commit 12c02ef6af
7 changed files with 98 additions and 17 deletions

View File

@ -8,10 +8,12 @@ html {
Arial, Arial,
sans-serif; sans-serif;
font-weight: 200; font-weight: 200;
background-size: 100%; background-size: 110%;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center top; background-position: center top;
height: 100%; height: 100%;
max-width: 1440px;
margin: auto;
} }
body { body {
@ -37,6 +39,11 @@ body {
align-items: center; align-items: center;
} }
.send-logo > a {
display: flex;
flex-direction: row;
}
.site-title { .site-title {
color: #3e3d40; color: #3e3d40;
font-size: 32px; font-size: 32px;
@ -44,6 +51,8 @@ body {
margin: 0; margin: 0;
position: relative; position: relative;
top: -1px; top: -1px;
letter-spacing: 1px;
margin-left: 8px;
} }
.site-subtitle { .site-subtitle {
@ -78,12 +87,20 @@ body {
font-size: 12px; font-size: 12px;
line-height: 12px; line-height: 12px;
opacity: 0.9; opacity: 0.9;
padding: 6px 6px 5px 20px; padding: 5px 5px 5px 5px;
overflow: hidden;
width: 12px;
text-indent: 20px;
transition: all 150ms ease-in-out;
} }
.feedback:hover, .feedback:hover,
.feedback:focus { .feedback:focus {
width: 57px;
text-indent: 0px;
padding: 5px 5px 5px 20px;
background-color: #0287e8; background-color: #0287e8;
transition: all 150ms ease-in-out;
} }
.feedback:active { .feedback:active {
@ -112,6 +129,11 @@ a {
} }
/** page-one **/ /** page-one **/
#page-one {
padding: 0 20px;
}
.title { .title {
font-size: 33px; font-size: 33px;
line-height: 40px; line-height: 40px;
@ -163,6 +185,10 @@ a {
text-decoration: none; text-decoration: none;
} }
.link:hover {
color: #0287e8;
}
#upload-text { #upload-text {
font-size: 22px; font-size: 22px;
color: #737373; color: #737373;
@ -391,8 +417,9 @@ tbody {
font-family: 'SF Pro Display', sans-serif; font-family: 'SF Pro Display', sans-serif;
letter-spacing: 0; letter-spacing: 0;
line-height: 23px; line-height: 23px;
padding-left: 5px; font-weight: 300;
padding-right: 5px; padding-left: 10px;
padding-right: 10px;
} }
#link:disabled { #link:disabled {
@ -414,6 +441,10 @@ tbody {
white-space: nowrap; white-space: nowrap;
} }
#copy-btn:hover {
background-color: #0287e8;
}
#copy-btn:disabled { #copy-btn:disabled {
background: #05a700; background: #05a700;
border: 1px solid #05a700; border: 1px solid #05a700;
@ -433,6 +464,10 @@ tbody {
color: #313131; color: #313131;
} }
#delete-file:hover {
background: #efeff1;
}
.send-new { .send-new {
font-size: 15px; font-size: 15px;
margin: auto; margin: auto;
@ -442,6 +477,12 @@ tbody {
text-decoration: underline; text-decoration: underline;
} }
.send-new:hover,
.send-new:focus,
.send-new:active {
color: #0287e8;
}
/* upload-error */ /* upload-error */
#upload-error { #upload-error {
display: flex; display: flex;
@ -580,7 +621,11 @@ tbody {
font-size: 15px; font-size: 15px;
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
padding: 50px 10px 10px; flex-direction: row;
justify-content: space-between;
padding: 50px 31px 41px 31px;
width: 100%;
box-sizing: border-box;
} }
.mozilla-logo { .mozilla-logo {
@ -589,23 +634,41 @@ tbody {
margin-bottom: -5px; margin-bottom: -5px;
} }
.legal-links > a { .legal-links {
margin-right: 30px; max-width: 600px;
color: #858585; width: 80vw;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
} }
.legal-links > a {
color: #858585;
opacity: 0.9;
}
.legal-links > a:hover {
opacity: 1;
}
.legal-links > a:visited { .legal-links > a:visited {
color: #858585; color: #858585;
} }
.social-links { .social-links {
display: flex; display: flex;
justify-content: flex-end; justify-content: space-between;
flex: 1; width: 94px;
} }
.social-links > a{ .social-links > a{
margin-left: 30px; opacity: .9;
}
.social-links > a:hover {
opacity: 1;
} }
.github, .github,
@ -615,7 +678,7 @@ tbody {
margin-bottom: -5px; margin-bottom: -5px;
} }
@media (max-device-width: 768px) { @media (max-width: 768px) {
.description { .description {
margin: 0 auto 25px; margin: 0 auto 25px;
} }
@ -628,17 +691,33 @@ tbody {
font-size: 18px; font-size: 18px;
} }
.footer {
flex-direction: column;
justify-content: center;
text-align: center;
}
.mozilla-logo { .mozilla-logo {
margin-left: -7px; margin-left: -7px;
} }
.legal-links {
flex-direction: column;
margin: auto;
}
.legal-links > * { .legal-links > * {
display: block; display: block;
padding: 10px 0; padding: 10px 0;
} }
.social-links {
margin: auto;
margin-top: 20px;
}
} }
@media (max-device-width: 520px) { @media (max-width: 520px) {
.header { .header {
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: flex-start;

Binary file not shown.

After

Width:  |  Height:  |  Size: 735 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
public/resources/favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

@ -10,13 +10,15 @@
<meta name="defaultLanguage" content="en-US"> <meta name="defaultLanguage" content="en-US">
<meta name="availableLanguages" content="en-US"> <meta name="availableLanguages" content="en-US">
<link rel="localization" href="/locales/send.{locale}.ftl"> <link rel="localization" href="/locales/send.{locale}.ftl">
<link rel="icon" type="image/png" href="/resources/favicon-32x32.png" sizes="32x32" />
<script defer src="/l20n.min.js"></script> <script defer src="/l20n.min.js"></script>
</head> </head>
<body> <body>
<header class="header"> <header class="header">
<div class="send-logo"> <div class="send-logo">
<img src="/resources/send_logo.svg" alt="Send"/> <a href="./">
<h1 class="site-title">Send</h1> <img src="/resources/send_logo.svg" alt="Send"/><h1 class="site-title">Send</h1>
</a>
<div class="site-subtitle"> <div class="site-subtitle">
<a href="https://testpilot.firefox.com" target="_blank">Firefox Test Pilot</a> <a href="https://testpilot.firefox.com" target="_blank">Firefox Test Pilot</a>
<div data-l10n-id="siteSubtitle">web experiment</div> <div data-l10n-id="siteSubtitle">web experiment</div>