0
0
Fork 0

Redesign extended information page (#4322)

* Redesign extended information page

* Remove unused keys

* Add $ui-base-lighter-color variable to SCSS
This commit is contained in:
Eugen Rochko 2017-07-24 15:09:08 +02:00 committed by GitHub
parent 117eb3b2bc
commit 2374d63536
37 changed files with 220 additions and 261 deletions

View file

@ -120,18 +120,55 @@
}
.information-board {
margin: 20px 0;
display: flex;
justify-content: space-between;
border-top: 1px solid lighten($ui-base-color, 10%);
border-bottom: 1px solid lighten($ui-base-color, 10%);
padding-right: 14px;
background: darken($ui-base-color, 4%);
padding: 40px 0;
.panel {
position: absolute;
width: 280px;
box-sizing: border-box;
background: darken($ui-base-color, 8%);
padding: 20px;
padding-top: 10px;
border-radius: 4px 4px 0 0;
right: 0;
bottom: -40px;
.panel-header {
font-family: 'mastodon-font-display', sans-serif;
font-size: 14px;
line-height: 24px;
font-weight: 500;
color: $ui-base-lighter-color;
padding-bottom: 5px;
margin-bottom: 15px;
border-bottom: 1px solid lighten($ui-base-color, 4%);
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
span {
font-weight: 400;
color: lighten($ui-base-color, 34%);
}
}
}
.container {
position: relative;
padding-right: 280px + 15px;
}
.information-board-sections {
display: flex;
justify-content: space-between;
}
.section {
flex: 1 0 0;
padding: 14px;
text-align: right;
font: 16px/28px 'mastodon-font-sans-serif', sans-serif;
text-align: right;
padding: 0 15px;
span,
strong {
@ -143,7 +180,6 @@
&:last-child {
color: $ui-secondary-color;
font-size: 14px;
}
}
@ -203,100 +239,6 @@
}
}
.contact-email {
text-align: center;
margin: 40px 0;
strong {
display: block;
color: $primary-text-color;
word-break: break-word;
}
}
.sidebar-layout {
display: flex;
.main {
flex: 1 1 auto;
padding: 14px 0;
.panel {
padding-right: 14px;
}
}
.sidebar {
border-left: 1px solid lighten($ui-base-color, 10%);
width: 200px;
flex: 0 0 auto;
}
.panel {
.panel-header {
background: lighten($ui-base-color, 10%);
padding: 7px 14px;
text-transform: uppercase;
font-size: 12px;
font-weight: 500;
}
.panel-body {
padding: 14px;
}
.panel-list {
ul {
list-style: none;
margin: 0;
li {
margin: 0;
font-family: inherit;
font-size: 13px;
line-height: 18px;
a {
display: block;
padding: 7px 14px;
color: rgba($primary-text-color, 0.7);
text-decoration: none;
transition: all 200ms linear;
i.fa {
margin-right: 5px;
}
&:hover {
color: $primary-text-color;
background-color: darken($ui-base-color, 5%);
transition: all 100ms linear;
}
&.selected {
color: $primary-text-color;
background-color: $ui-highlight-color;
&:hover {
background-color: lighten($ui-highlight-color, 5%);
}
}
}
}
}
}
}
@media screen and (max-width: 625px) {
flex-direction: column;
.sidebar {
border: 1px solid lighten($ui-base-color, 10%);
width: auto;
}
}
}
.features-list__row {
display: flex;
padding: 10px 0;
@ -322,7 +264,7 @@
.text {
font-size: 16px;
line-height: 30px;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
h6 {
font-weight: 500;
@ -338,6 +280,15 @@
background: linear-gradient(150deg, lighten($ui-base-color, 8%), $ui-base-color);
position: relative;
&.compact {
background: $ui-base-color;
padding-bottom: 15px;
.hero .heading {
padding-bottom: 30px;
}
}
.mascot-container {
max-width: 800px;
margin: 0 auto;
@ -402,7 +353,7 @@
right: -120px;
bottom: 0;
animation-duration: 3s;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 447.1875 234.375" height="170" width="324"><path fill="#{hex-color(lighten($ui-base-color, 26%))}" d="M21.69 233.366c-6.45-1.268-13.347-5.63-16.704-10.564-10.705-15.734-1.513-37.724 18.632-44.57l4.8-1.632.173-17.753c.146-14.77.515-19.063 2.2-25.55 6.736-25.944 24.46-46.032 47.766-54.137 11.913-4.143 19.558-5.366 34.178-5.47l13.828-.096V71.12c0-4.755 2.853-17.457 5.238-23.327 8.588-21.137 26.735-35.957 52.153-42.593 23.248-6.07 50.153-6.415 71.863-.923 11.14 2.82 25.686 9.957 33.857 16.615 19.335 15.756 31.82 41.05 35.183 71.275.59 5.305.672 5.435 3.11 4.926 11.833-2.474 30.4-3.132 40.065-1.42 24.388 4.32 40.568 19.076 47.214 43.058 2.16 7.8 3.953 23.894 3.59 32.237l-.24 5.498 5.156 1.317c6.392 1.633 14.55 7.098 18.003 12.062 1.435 2.062 3.305 6.597 4.156 10.078 1.428 5.84 1.43 6.8.04 12.44-1.807 7.318-5.672 13.252-10.872 16.694-8.508 5.63 3.756 5.33-211.916 5.216-108.56-.056-199.22-.464-201.47-.906z"/></svg>');
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 447.1875 234.375" height="170" width="324"><path fill="#{hex-color($ui-base-lighter-color)}" d="M21.69 233.366c-6.45-1.268-13.347-5.63-16.704-10.564-10.705-15.734-1.513-37.724 18.632-44.57l4.8-1.632.173-17.753c.146-14.77.515-19.063 2.2-25.55 6.736-25.944 24.46-46.032 47.766-54.137 11.913-4.143 19.558-5.366 34.178-5.47l13.828-.096V71.12c0-4.755 2.853-17.457 5.238-23.327 8.588-21.137 26.735-35.957 52.153-42.593 23.248-6.07 50.153-6.415 71.863-.923 11.14 2.82 25.686 9.957 33.857 16.615 19.335 15.756 31.82 41.05 35.183 71.275.59 5.305.672 5.435 3.11 4.926 11.833-2.474 30.4-3.132 40.065-1.42 24.388 4.32 40.568 19.076 47.214 43.058 2.16 7.8 3.953 23.894 3.59 32.237l-.24 5.498 5.156 1.317c6.392 1.633 14.55 7.098 18.003 12.062 1.435 2.062 3.305 6.597 4.156 10.078 1.428 5.84 1.43 6.8.04 12.44-1.807 7.318-5.672 13.252-10.872 16.694-8.508 5.63 3.756 5.33-211.916 5.216-108.56-.056-199.22-.464-201.47-.906z"/></svg>');
}
.float-2 {
@ -412,7 +363,7 @@
bottom: 0;
animation-duration: 3.5s;
animation-delay: 0.2s;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 536.25 222.1875" height="100" width="241"><path fill="#{hex-color(lighten($ui-base-color, 26%))}" d="M42.626 221.23c-14.104-1.174-26.442-5.133-32.825-10.534-4.194-3.548-7.684-10.66-8.868-18.075-1.934-12.102.633-22.265 7.528-29.81 7.61-8.328 19.998-12.76 39.855-14.257l8.47-.638-2.08-6.223c-4.826-14.422-6.357-24.813-6.37-43.255-.012-14.923.28-18.513 2.1-25.724 2.283-9.048 8.483-23.034 13.345-30.1 14.76-21.45 43.505-38.425 70.535-41.65 30.628-3.655 64.47 12.073 89.668 41.673l5.955 6.995 2.765-4.174c1.52-2.296 5.74-6.93 9.376-10.295 18.382-17.02 43.436-20.676 73.352-10.705 12.158 4.052 21.315 9.53 29.64 17.733 12.752 12.562 18.16 25.718 18.19 44.26l.02 10.98 2.312-3.01c15.64-20.365 42.29-20.485 62.438-.28 3.644 3.653 7.558 8.593 8.697 10.976 4.895 10.24 5.932 25.688 2.486 37.046-.76 2.507-1.388 4.816-1.393 5.13-.006.316 6.845.87 15.224 1.234 53.06 2.297 76.356 12.98 81.817 37.526 3.554 15.973-3.71 28.604-19.566 34.02-4.554 1.555-17.922 1.655-234.517 1.757-126.327.06-233.497-.21-238.154-.597z"/></svg>');
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 536.25 222.1875" height="100" width="241"><path fill="#{hex-color($ui-base-lighter-color)}" d="M42.626 221.23c-14.104-1.174-26.442-5.133-32.825-10.534-4.194-3.548-7.684-10.66-8.868-18.075-1.934-12.102.633-22.265 7.528-29.81 7.61-8.328 19.998-12.76 39.855-14.257l8.47-.638-2.08-6.223c-4.826-14.422-6.357-24.813-6.37-43.255-.012-14.923.28-18.513 2.1-25.724 2.283-9.048 8.483-23.034 13.345-30.1 14.76-21.45 43.505-38.425 70.535-41.65 30.628-3.655 64.47 12.073 89.668 41.673l5.955 6.995 2.765-4.174c1.52-2.296 5.74-6.93 9.376-10.295 18.382-17.02 43.436-20.676 73.352-10.705 12.158 4.052 21.315 9.53 29.64 17.733 12.752 12.562 18.16 25.718 18.19 44.26l.02 10.98 2.312-3.01c15.64-20.365 42.29-20.485 62.438-.28 3.644 3.653 7.558 8.593 8.697 10.976 4.895 10.24 5.932 25.688 2.486 37.046-.76 2.507-1.388 4.816-1.393 5.13-.006.316 6.845.87 15.224 1.234 53.06 2.297 76.356 12.98 81.817 37.526 3.554 15.973-3.71 28.604-19.566 34.02-4.554 1.555-17.922 1.655-234.517 1.757-126.327.06-233.497-.21-238.154-.597z"/></svg>');
}
.float-3 {
@ -422,7 +373,7 @@
top: -30px;
animation-duration: 4s;
animation-delay: 0.5s;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 388.125 202.5" height="140" width="267"><path fill="#{hex-color(lighten($ui-base-color, 26%))}" d="M181.37 201.458c-17.184-1.81-36.762-8.944-49.523-18.05l-5.774-4.12-8.074 2.63c-11.468 3.738-21.382 4.962-35.815 4.422-14.79-.554-24.577-2.845-36.716-8.594-15.483-7.332-28.498-19.98-35.985-34.968C2.44 128.675-.94 108.435.9 91.356c3.362-31.234 18.197-53.698 43.63-66.074 12.803-6.23 22.384-8.55 37.655-9.122 14.433-.54 24.347.684 35.814 4.42l8.073 2.633 5.635-4.01c24.81-17.656 60.007-23.332 92.914-14.985 10.11 2.565 25.498 9.62 33.102 15.178l5.068 3.704 7.632-2.564c10.89-3.66 21.086-4.916 35.516-4.376 45.816 1.716 76.422 30.03 81.285 75.196 1.84 17.08-1.54 37.32-8.585 51.422-7.487 14.99-20.502 27.636-35.984 34.968-12.14 5.75-21.926 8.04-36.716 8.593-14.43.54-24.626-.716-35.516-4.376l-7.632-2.564-5.068 3.704c-12.844 9.387-32.714 16.488-51.545 18.42-10.607 1.09-13.916 1.08-24.81-.066z"/></svg>');
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 388.125 202.5" height="140" width="267"><path fill="#{hex-color($ui-base-lighter-color)}" d="M181.37 201.458c-17.184-1.81-36.762-8.944-49.523-18.05l-5.774-4.12-8.074 2.63c-11.468 3.738-21.382 4.962-35.815 4.422-14.79-.554-24.577-2.845-36.716-8.594-15.483-7.332-28.498-19.98-35.985-34.968C2.44 128.675-.94 108.435.9 91.356c3.362-31.234 18.197-53.698 43.63-66.074 12.803-6.23 22.384-8.55 37.655-9.122 14.433-.54 24.347.684 35.814 4.42l8.073 2.633 5.635-4.01c24.81-17.656 60.007-23.332 92.914-14.985 10.11 2.565 25.498 9.62 33.102 15.178l5.068 3.704 7.632-2.564c10.89-3.66 21.086-4.916 35.516-4.376 45.816 1.716 76.422 30.03 81.285 75.196 1.84 17.08-1.54 37.32-8.585 51.422-7.487 14.99-20.502 27.636-35.984 34.968-12.14 5.75-21.926 8.04-36.716 8.593-14.43.54-24.626-.716-35.516-4.376l-7.632-2.564-5.068 3.704c-12.844 9.387-32.714 16.488-51.545 18.42-10.607 1.09-13.916 1.08-24.81-.066z"/></svg>');
}
}
@ -505,10 +456,6 @@
a {
padding-left: 0;
color: $white;
&:hover img {
opacity: 1;
}
}
img {
@ -517,7 +464,6 @@
position: relative;
top: 4px;
left: -10px;
opacity: 0.8;
}
}
}
@ -541,6 +487,42 @@
padding: 50px 0;
}
.extended-description {
padding: 50px 0;
ul,
ol {
list-style: inherit;
margin-left: 20px;
&[type='a'] {
list-style-type: lower-alpha;
}
&[type='i'] {
list-style-type: lower-roman;
}
}
li > ol,
li > ul {
margin-top: 20px;
}
p,
li {
font: 16px/28px 'mastodon-font-sans-serif', sans-serif;
font-weight: 400;
margin-bottom: 12px;
color: $ui-base-lighter-color;
a {
color: $ui-highlight-color;
text-decoration: underline;
}
}
}
h3 {
font-family: 'mastodon-font-display', sans-serif;
font-size: 16px;
@ -553,7 +535,7 @@
p {
font-size: 16px;
line-height: 30px;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
}
.features {
@ -645,14 +627,14 @@
display: block;
font-size: 18px;
font-weight: 400;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
}
}
.footer-links {
padding-bottom: 50px;
text-align: right;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
p {
font-size: 14px;
@ -669,6 +651,29 @@
padding: 0 20px;
}
.information-board {
padding-bottom: 20px;
}
.information-board .container {
padding-right: 20px;
.panel {
position: static;
margin-top: 30px;
width: 100%;
border-radius: 4px;
.panel-header {
text-align: center;
}
}
}
.information-board .section {
text-align: center;
}
.header-wrapper .mascot {
left: 20px;
}
@ -720,6 +725,12 @@
padding: 30px 0;
}
.links .brand img {
left: 0;
top: 0;
margin-right: 0;
}
.hero {
.simple_form,
.closed-registrations-message {

File diff suppressed because one or more lines are too long

View file

@ -107,7 +107,7 @@
.icon-button {
display: inline-block;
padding: 0;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
border: none;
background: transparent;
cursor: pointer;
@ -145,7 +145,7 @@
&:hover,
&:active,
&:focus {
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
}
&.active {
@ -185,7 +185,7 @@
&:hover,
&:active,
&:focus {
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
transition: color 200ms ease-out;
}
@ -610,13 +610,13 @@
}
.status__relative-time {
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
float: right;
font-size: 14px;
}
.status__display-name {
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
}
.status__info .status__display-name {
@ -652,14 +652,14 @@
.status__prepend {
margin-left: 68px;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
padding: 8px 0;
padding-bottom: 2px;
font-size: 14px;
position: relative;
.status__display-name strong {
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
}
}
@ -725,7 +725,7 @@
.detailed-status__meta {
margin-top: 15px;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
font-size: 14px;
line-height: 18px;
}
@ -944,7 +944,7 @@
}
abbr {
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
}
}
@ -1046,11 +1046,11 @@
.muted {
.status__content p,
.status__content a {
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
}
.status__display-name strong {
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
}
.status__avatar {
@ -1058,7 +1058,7 @@
}
a.status__content__spoiler-link {
background: lighten($ui-base-color, 26%);
background: $ui-base-lighter-color;
color: lighten($ui-base-color, 4%);
&:hover {
@ -1273,7 +1273,7 @@
.static-content {
padding: 10px;
padding-top: 20px;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
h1 {
font-size: 16px;
@ -1736,7 +1736,7 @@
.column-subheading {
background: $ui-base-color;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
padding: 8px 20px;
font-size: 12px;
font-weight: 500;
@ -1875,7 +1875,7 @@
}
a {
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
}
}
@ -1939,7 +1939,7 @@ button.icon-button.active i.fa-retweet {
font-size: 14px;
border: 1px solid lighten($ui-base-color, 8%);
border-radius: 4px;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
margin-top: 14px;
text-decoration: none;
overflow: hidden;
@ -2034,7 +2034,7 @@ button.icon-button.active i.fa-retweet {
.load-more {
display: block;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
background-color: transparent;
border: 0;
font-size: inherit;
@ -2723,13 +2723,13 @@ button.icon-button.active i.fa-retweet {
color: $ui-secondary-color;
font-size: 18px;
font-weight: 500;
border: 2px dashed lighten($ui-base-color, 26%);
border: 2px dashed $ui-base-lighter-color;
border-radius: 4px;
}
.upload-progress {
padding: 10px;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
overflow: hidden;
display: flex;
@ -2754,7 +2754,7 @@ button.icon-button.active i.fa-retweet {
width: 100%;
height: 6px;
border-radius: 6px;
background: lighten($ui-base-color, 26%);
background: $ui-base-lighter-color;
position: relative;
margin-top: 5px;
}
@ -2965,7 +2965,7 @@ button.icon-button.active i.fa-retweet {
}
.search-results__header {
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
background: lighten($ui-base-color, 2%);
border-bottom: 1px solid darken($ui-base-color, 4%);
padding: 15px 10px;
@ -3559,7 +3559,7 @@ button.icon-button.active i.fa-retweet {
.attachment-list__icon {
flex: 0 0 auto;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
padding: 8px 18px;
cursor: default;
border-right: 1px solid lighten($ui-base-color, 8%);
@ -3589,7 +3589,7 @@ button.icon-button.active i.fa-retweet {
a {
text-decoration: none;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
font-weight: 500;
&:hover {
@ -3752,7 +3752,7 @@ button.icon-button.active i.fa-retweet {
}
.account-section-headline {
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
background: lighten($ui-base-color, 2%);
border-bottom: 1px solid lighten($ui-base-color, 4%);
padding: 15px 10px;

View file

@ -32,7 +32,7 @@ code {
line-height: 18px;
margin-top: 15px;
margin-bottom: 0;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
a {
color: $ui-primary-color;
@ -308,7 +308,7 @@ code {
padding: 7px 4px;
padding-bottom: 9px;
font-size: 16px;
color: lighten($ui-base-color, 26%);
color: $ui-base-lighter-color;
font-family: inherit;
pointer-events: none;
cursor: default;

View file

@ -22,7 +22,8 @@ $valid-value-color: $success-green !default;
$error-value-color: $error-red !default;
// Tell UI to use selected colors
$ui-base-color: $classic-base-color !default; // Darkest
$ui-primary-color: $classic-primary-color !default; // Lighter
$ui-secondary-color: $classic-secondary-color !default; // Lightest
$ui-highlight-color: $classic-highlight-color !default; // Vibrant
$ui-base-color: $classic-base-color !default; // Darkest
$ui-base-lighter-color: lighten($ui-base-color, 26%) !default; // Lighter darkest
$ui-primary-color: $classic-primary-color !default; // Lighter
$ui-secondary-color: $classic-secondary-color !default; // Lightest
$ui-highlight-color: $classic-highlight-color !default; // Vibrant