UX: Update brand color, some login adjustments

This commit is contained in:
Kris 2019-03-15 17:20:52 -04:00
parent fcb56c7f9d
commit 95e8c935c5
5 changed files with 52 additions and 14 deletions

View File

@ -200,24 +200,43 @@
.d-icon { .d-icon {
opacity: 0.9; opacity: 0.9;
} }
&:hover {
color: currentColor;
background: darken($google, 5%);
}
} }
&.instagram { &.instagram {
background: $instagram; background: $instagram;
&:hover {
background: darken($instagram, 15%);
}
} }
&.facebook { &.facebook {
background: $facebook; background: $facebook;
&:hover {
background: darken($facebook, 15%);
}
} }
&.cas { &.cas {
background: $cas; background: $cas;
} }
&.twitter { &.twitter {
background: $twitter; background: $twitter;
&:hover {
background: darken($twitter, 10%);
}
} }
&.yahoo { &.yahoo {
background: $yahoo; background: $yahoo;
&:hover {
background: darken($yahoo, 10%);
}
} }
&.github { &.github {
background: $github; background: $github;
&:hover {
background: lighten($github, 20%);
}
} }
} }

View File

@ -8,10 +8,14 @@ $base-space: 4px;
$spaces: (); $spaces: ();
@each $size in $sizes { @each $size in $sizes {
@if ($size == 0) { @if ($size == 0) {
// strip units from 0 values // Strip units if 0
@return $size / ($size * 0 + 1); $size: $size * $base-space;
$size: $size / ($size * 0 + 1);
} @else {
$size: $size * $base-space;
} }
$spaces: append($spaces, ($size * $base-space));
$spaces: append($spaces, $size);
} }
@return $spaces; @return $spaces;
} }

View File

@ -18,12 +18,12 @@ $topic-avatar-width: 45px;
// -------------------------------------------------- // --------------------------------------------------
$google: #ffffff !default; $google: #ffffff !default;
$instagram: #125688 !default; $instagram: #e1306c !default;
$facebook: #3b5998 !default; $facebook: #4267b2 !default;
$cas: #70ba61 !default; $cas: #70ba61 !default;
$twitter: #00bced !default; $twitter: #1da1f2 !default;
$yahoo: #810293 !default; $yahoo: #810293 !default;
$github: #6d6d6d !default; $github: #100e0f !default;
// Badge color variables // Badge color variables
// -------------------------------------------------- // --------------------------------------------------

View File

@ -5,23 +5,37 @@
.create-account { .create-account {
#login-buttons:not(.hidden) { #login-buttons:not(.hidden) {
display: flex; display: flex;
flex: 0;
flex-direction: column; flex-direction: column;
flex-basis: 40%; align-items: stretch;
align-items: center;
min-height: 175px; min-height: 175px;
border-left: 1px solid $primary-low; border-left: 1px solid $primary-low;
padding: 0 15px; padding: s(0 6);
order: 2; order: 2;
button { button {
text-align: left;
margin: 0.35em; margin: 0.35em;
width: 160px; white-space: nowrap;
&:lang(zh_CN) { &:lang(zh_CN) {
min-width: 200px; min-width: 200px;
} }
} }
} }
.modal-inner-container {
max-width: 450px;
}
form {
min-width: 300px;
}
#modal-alert {
max-width: 500px;
padding: s(2 4);
}
.login-modal { .login-modal {
#login-buttons:not(.hidden) { #login-buttons:not(.hidden) {
button { button {
@ -43,8 +57,9 @@
} }
#login-form { #login-form {
box-sizing: border-box;
flex: 1 0 auto; flex: 1 0 auto;
padding: 0 15px; padding: s(0 6);
} }
tr:not(.instructions) { tr:not(.instructions) {
@ -140,7 +155,7 @@
} }
form { form {
box-sizing: border-box; box-sizing: border-box;
padding: 15px; padding: s(4 6);
margin-bottom: 5px; margin-bottom: 5px;
max-height: 475px; max-height: 475px;
@media screen and (max-height: 768px) { @media screen and (max-height: 768px) {

View File

@ -23,7 +23,7 @@
flex: 1 1 47%; flex: 1 1 47%;
max-width: 70%; max-width: 70%;
margin: 1% 0 1% 2%; margin: 1% 0 1% 2%;
font-size: $font-up-1; font-size: $font-0;
white-space: nowrap; white-space: nowrap;
@media screen and (max-width: 360px) { @media screen and (max-width: 360px) {
font-size: $font-0; font-size: $font-0;