Redesign prototype merge #18

Merged
MrPetovan merged 50 commits from feature/redesign-prototype into master 2017-05-06 08:10:18 +02:00
Showing only changes of commit a93184b38d - Show all commits

View file

@ -1,443 +1,443 @@
*{ * {
box-sizing:border-box; box-sizing: border-box;
} }
html,body{ html,body {
margin:0; margin: 0;
padding:0; padding: 0;
} }
html{ html {
font-family:'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
font-weight:300; font-weight: 300;
font-size:100%; font-size: 100%;
} }
a{color:inherit;} a {color: inherit;}
p{ p {
margin:0 0 1em 0; margin: 0 0 1em 0;
} }
.mobile{ .mobile {
display:none !important; display: none !important;
} }
#top-bar{ #top-bar {
background:#f5f5f5; background: #f5f5f5;
padding:8px 14px; padding: 8px 14px;
position:fixed; position: fixed;
z-index:1; z-index: 1;
top:0; top: 0;
height:55px; height: 55px;
width:100%; width: 100%;
text-align:center; text-align: center;
font-weight:300; font-weight: 300;
border-bottom:1px solid #ddd; border-bottom: 1px solid #ddd;
} }
#top-bar-spacer{ #top-bar-spacer {
width:100%; width: 100%;
height:55px; height: 55px;
} }
#top-bar .header{ #top-bar .header {
position:absolute; position: absolute;
top:14px; top: 14px;
left:14px; left: 14px;
display:inline-block; display: inline-block;
font-size:16px; font-size: 16px;
font-weight:300; font-weight: 300;
line-height:0.9em; line-height: 0.9em;
background:url('/images/friendica.svg') top left no-repeat; background: url('/images/friendica.svg') top left no-repeat;
background-size:14px; background-size: 14px;
padding-left:18px; padding-left: 18px;
margin:0; margin: 0;
} }
#top-bar .search-form{ #top-bar .search-form {
margin:0 20px; margin: 0 20px;
display:inline-block; display: inline-block;
} }
#top-bar .search-wrapper{ #top-bar .search-wrapper {
background:#fff; background: #fff;
} }
nav#links{ nav#links {
position:absolute; position: absolute;
top:0; top: 0;
right:14px; right: 14px;
line-height:55px; line-height: 55px;
} }
nav#links a{ nav#links a {
display:inline-block; display: inline-block;
margin:0 4px; margin: 0 4px;
padding:0 5px; padding: 0 5px;
} }
.sub-menu-outer{ .sub-menu-outer {
background:#eee; background: #eee;
line-height:45px; line-height: 45px;
height:45px; height: 45px;
border-bottom:1px solid #ddd; border-bottom: 1px solid #ddd;
} }
.sub-menu-outer .sub-menu-inner{ .sub-menu-outer .sub-menu-inner {
width:500px; width: 500px;
margin:auto; margin: auto;
} }
.sub-menu-inner .option{ .sub-menu-inner .option {
padding:9px 6px; padding: 9px 6px;
margin:0 5px; margin: 0 5px;
} }
.sub-menu-inner .option.active{ .sub-menu-inner .option.active {
border-bottom:2px solid #f00; border-bottom: 2px solid #f00;
} }
.homepage-wrapper{ .homepage-wrapper {
width:500px; width: 500px;
margin:auto; margin: auto;
text-align:center; text-align: center;
} }
.search-results, .search-results,
.directory-results{ .directory-results {
margin-bottom:25px; margin-bottom: 25px;
} }
.directory-results{ .directory-results {
display:flex; display: flex;
flex-flow:row; flex-flow: row;
} }
.directory-results > aside{ .directory-results > aside {
flex:1 6 20%; flex: 1 6 20%;
order:1; order: 1;
padding:0 1em; padding: 0 1em;
} }
.directory-results > section{ .directory-results > section {
flex:3 1 80%; flex: 3 1 80%;
order:2; order: 2;
} }
.homepage-wrapper{ .homepage-wrapper {
margin:120px auto; margin: 120px auto;
} }
.homepage-wrapper .header{ .homepage-wrapper .header {
font-size:68px; font-size: 68px;
font-weight:100; font-weight: 100;
line-height:0.9em; line-height: 0.9em;
background:url('/images/friendica.svg') top left no-repeat; background: url('/images/friendica.svg') top left no-repeat;
background-size:61px; background-size: 61px;
margin-left:40px; margin-left: 40px;
} }
.homepage-wrapper .about{ .homepage-wrapper .about {
text-align:justify; text-align: justify;
line-height:1.5em; line-height: 1.5em;
color:#555; color: #555;
} }
.homepage-wrapper .profiles{ .homepage-wrapper .profiles {
margin-top:3em; margin-top: 3em;
} }
.profiles{ .profiles {
padding:0 10px; padding: 0 10px;
column-width:400px; column-width: 400px;
} }
.profiles > figure{ .profiles > figure {
display:inline-block; display: inline-block;
cursor:pointer; cursor: pointer;
} }
nav#links a, nav#links a,
.sub-menu-outer a{ .sub-menu-outer a {
text-decoration:none; text-decoration: none;
} }
.search-results .intro{ .search-results .intro {
text-align:justify; text-align: justify;
} }
.site, .site,
.profile{ .profile {
width:100%; width: 100%;
text-decoration:none; text-decoration: none;
color:#000; color: #000;
padding:2px; padding: 2px;
outline:none; outline: none;
margin:5px 0; margin: 5px 0;
display:inline; display: inline;
background-color:rgba(0, 0, 0, .01); background-color: rgba(0, 0, 0, .01);
border-radius:23px .5em 23px .5em; border-radius: 23px .5em 23px .5em;
} }
.site{ .site {
padding:14px 2px; padding: 14px 2px;
margin:20px 0; margin: 20px 0;
border-bottom:1px dashed #ccc; border-bottom: 1px dashed #ccc;
} }
.profile.selected, .profile.selected,
.profile:focus, .profile: focus,
.profile:hover{ .profile: hover {
padding:1px; padding: 1px;
border:1px solid #ccc; border: 1px solid #ccc;
} }
.site .site-info, .site .site-info,
.site .site-supports, .site .site-supports,
.profile .profile-photo, .profile .profile-photo,
.profile .profile-info{ .profile .profile-info {
display:table-cell; display: table-cell;
vertical-align:top; vertical-align: top;
text-align:left; text-align: left;
} }
.site .site-supports{ .site .site-supports {
text-align:right; text-align: right;
padding:8px; padding: 8px;
} }
.profile .profile-photo{ .profile .profile-photo {
float:left; float: left;
margin:8px; margin: 8px;
border-radius:15px; border-radius: 15px;
border:1px solid #ddd; border: 1px solid #ddd;
} }
.site .site-info, .site .site-info,
.profile .profile-info{ .profile .profile-info {
padding:8px; padding: 8px;
width:100%; width: 100%;
} }
.site .site-info strong, .site .site-info strong,
.profile .profile-info strong{ .profile .profile-info strong {
font-weight:600; font-weight: 600;
} }
.site .site-info .fa, .site .site-info .fa,
.profile .profile-info .fa{ .profile .profile-info .fa {
line-height:1.1em; line-height: 1.1em;
color:#999; color: #999;
} }
.site .site-info .url, .site .site-info .url,
.profile .profile-info .url{ .profile .profile-info .url {
font-size:80%; font-size: 80%;
margin-bottom:3px; margin-bottom: 3px;
color:#555; color: #555;
/** @see https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ */ /** @see https: //css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ */
overflow-wrap:break-word; overflow-wrap: break-word;
word-wrap:break-word; word-wrap: break-word;
-ms-word-break:break-all; -ms-word-break: break-all;
word-break:break-all; word-break: break-all;
word-break:break-word; word-break: break-word;
-ms-hyphens:auto; -ms-hyphens: auto;
-moz-hyphens:auto; -moz-hyphens: auto;
-webkit-hyphens:auto; -webkit-hyphens: auto;
hyphens:auto; hyphens: auto;
} }
.profile .profile-info .description{ .profile .profile-info .description {
margin-bottom:.5em; margin-bottom: .5em;
} }
.search-wrapper{ .search-wrapper {
position:relative; position: relative;
display:inline-block; display: inline-block;
width:500px; width: 500px;
background:#f5f5f5; background: #f5f5f5;
border:1px solid #ddd; border: 1px solid #ddd;
border-radius:8px; border-radius: 8px;
height:38px; height: 38px;
line-height:22px; line-height: 22px;
} }
.search-wrapper .search-field{ .search-wrapper .search-field {
line-height:22px; line-height: 22px;
display:block; display: block;
border:none; border: none;
outline:none; outline: none;
background:none; background: none;
padding:8px 12px; padding: 8px 12px;
padding-right:117px; padding-right: 117px;
width:100%; width: 100%;
} }
.search-wrapper .reset{ .search-wrapper .reset {
position:absolute; position: absolute;
top:0; top: 0;
right:65px; right: 65px;
height:25px; height: 25px;
width:25px; width: 25px;
margin:6px; margin: 6px;
padding:0; padding: 0;
line-height:1; line-height: 1;
font-size:12px; font-size: 12px;
color:#555; color: #555;
background:#eee; background: #eee;
border:1px solid #ddd; border: 1px solid #ddd;
border-radius:20px; border-radius: 20px;
font-family:'FontAwesome'; font-family: 'FontAwesome';
font-weight:100; font-weight: 100;
line-height:25px; line-height: 25px;
text-decoration:none; text-decoration: none;
} }
.search-wrapper .search{ .search-wrapper .search {
border:none; border: none;
border-left:1px solid #ddd; border-left: 1px solid #ddd;
color:#555; color: #555;
background:#eee; background: #eee;
position:absolute; position: absolute;
top:0; top: 0;
right:0; right: 0;
height:36px; height: 36px;
width:65px; width: 65px;
border-radius:0 8px 8px 0; border-radius: 0 8px 8px 0;
} }
.health{font-size:120%; vertical-align:bottom;} .health {font-size: 120%; vertical-align: bottom;}
.health.very-bad{ color:#f99; } .health.very-bad { color: #f99; }
.health.bad{ color:#f1ba7a; } .health.bad { color: #f1ba7a; }
.health.neutral{ color:#e6e782; } .health.neutral { color: #e6e782; }
.health.ok{ color:#bef273; } .health.ok { color: #bef273; }
.health.good{ color:#7cf273; } .health.good { color: #7cf273; }
.health.perfect{ color:#33ff80; } .health.perfect { color: #33ff80; }
.btn{ .btn {
border:1px solid #ddd; border: 1px solid #ddd;
color:#555; color: #555;
background:#eee; background: #eee;
border-radius:8px 8px; border-radius: 8px 8px;
height:36px; height: 36px;
line-height:34px; line-height: 34px;
min-width:80px; min-width: 80px;
padding:0 10px; padding: 0 10px;
text-decoration:none; text-decoration: none;
display:inline-block; display: inline-block;
} }
/* smaller than tablet in portrait */ /* smaller than tablet in portrait */
@media screen and (max-width: 880px){ @media screen and (max-width: 880px) {
body{ body {
overflow-x:hidden; overflow-x: hidden;
} }
.mobile{ .mobile {
display:inherit !important; display: inherit !important;
} }
#top-bar .header{ #top-bar .header {
overflow:hidden; overflow: hidden;
width:0px; width: 0px;
padding-left:28px; padding-left: 28px;
height:28px; height: 28px;
background-size:28px; background-size: 28px;
} }
#top-bar .search-form{ #top-bar .search-form {
display:block; display: block;
width:100%; width: 100%;
padding:0 35px; padding: 0 35px;
margin:0; margin: 0;
} }
.homepage-wrapper, .homepage-wrapper,
.search-wrapper{ .search-wrapper {
width:95%; width: 95%;
max-width:500px; max-width: 500px;
} }
.homepage-wrapper .search-wrapper{ .homepage-wrapper .search-wrapper {
width:100%; width: 100%;
} }
.homepage-wrapper{ .homepage-wrapper {
margin:90px auto; margin: 90px auto;
} }
.search-results, .search-results,
.sub-menu-outer .sub-menu-inner{ .sub-menu-outer .sub-menu-inner {
width:95%; width: 95%;
max-width:500px; max-width: 500px;
} }
.hamburger{ .hamburger {
position:absolute; position: absolute;
top:0px; top: 0px;
right:0px; right: 0px;
padding:14px; padding: 14px;
font-size:22px; font-size: 22px;
line-height:22px; line-height: 22px;
cursor:pointer; cursor: pointer;
} }
nav#links{ nav#links {
position:absolute; position: absolute;
width:100%; width: 100%;
top:54px; top: 54px;
right:0; right: 0;
padding-bottom:5px; padding-bottom: 5px;
} }
nav#links .viewport{ nav#links .viewport {
position:absolute; position: absolute;
z-index:1; z-index: 1;
left:100%; left: 100%;
width:100%; width: 100%;
transition:left ease 200ms; transition: left ease 200ms;
background:#fff; background: #fff;
padding:20px 0; padding: 20px 0;
box-shadow:1px 3px 3px rgba(0,0,0,0.2); box-shadow: 1px 3px 3px rgba(0,0,0,0.2);
font-size:150%; font-size: 150%;
text-align:center; text-align: center;
} }
nav#links.open .viewport{ nav#links.open .viewport {
left:0%; left: 0%;
} }
#top-bar nav#links .viewport{ #top-bar nav#links .viewport {
background:#f5f5f5; background: #f5f5f5;
} }
nav#links h3{ nav#links h3 {
margin:0; margin: 0;
display:block; display: block;
line-height:2em; line-height: 2em;
} }
nav#links a{ nav#links a {
display:block; display: block;
line-height:2.5em; line-height: 2.5em;
margin:4px 0; margin: 4px 0;
} }
.profile, .profile,
.profile .profile-info{ .profile .profile-info {
overflow-wrap:break-word; overflow-wrap: break-word;
word-wrap:break-word; word-wrap: break-word;
overflow:hidden; overflow: hidden;
} }
} }
/* The moment the header starts getting squashed */ /* The moment the header starts getting squashed */
@media screen and (max-width: 520px){ @media screen and (max-width: 520px) {
.homepage-wrapper{ .homepage-wrapper {
margin:30px auto; margin: 30px auto;
} }
.homepage-wrapper .header{ .homepage-wrapper .header {
font-size:40px; font-size: 40px;
background-size:36px; background-size: 36px;
display:inline-block; display: inline-block;
margin-left:18px; margin-left: 18px;
width:275px; width: 275px;
} }
} }
/* close to mobile in portrait */ /* close to mobile in portrait */
@media screen and (max-width: 400px){ @media screen and (max-width: 400px) {
.profile .profile-photo{ .profile .profile-photo {
width:60px; width: 60px;
border-radius:11.25px; border-radius: 11.25px;
margin:8px 4px; margin: 8px 4px;
} }
.profile .profile-info .url{ .profile .profile-info .url {
display:none; display: none;
} }
} }