Roland Häder
d400ed3342
- don't download files - more worse JavaScript - from external CDNs - this is a security nightmare when the remote CDN is compromised and starts distributing worms/trojan horses (see NSA scandal) - this will give them away your user's IP addresses - removed no longer used js/main.js as there is assets/js/main.js around - moved css/js files in their own folder (assets/<css|js>) - removed executable right from include/dba.php, no need for this Signed-off-by: Roland Häder <roland@mxchange.org>
448 lines
7.9 KiB
CSS
448 lines
7.9 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-weight: 300;
|
|
font-size: 100%;
|
|
}
|
|
|
|
a {color: inherit;}
|
|
|
|
p {
|
|
margin: 0 0 1em 0;
|
|
}
|
|
|
|
.mobile {
|
|
display: none !important;
|
|
}
|
|
|
|
#top-bar {
|
|
background: #f5f5f5;
|
|
padding: 8px 14px;
|
|
position: fixed;
|
|
z-index: 1;
|
|
top: 0;
|
|
height: 55px;
|
|
width: 100%;
|
|
font-weight: 300;
|
|
border-bottom: 1px solid #ddd;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
#top-bar-spacer {
|
|
width: 100%;
|
|
height: 55px;
|
|
}
|
|
|
|
#top-bar .header {
|
|
display: inline-block;
|
|
font-size: 16px;
|
|
font-weight: 300;
|
|
line-height: 19px;
|
|
background: url('/images/friendica.svg') top left no-repeat;
|
|
background-size: 14px;
|
|
padding-left: 18px;
|
|
margin: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#top-bar .search-form {
|
|
display: inline-block;
|
|
}
|
|
#top-bar .search-wrapper {
|
|
background: #fff;
|
|
}
|
|
|
|
nav#links {
|
|
line-height: 39px;
|
|
white-space: nowrap;
|
|
}
|
|
nav#links a {
|
|
display: inline-block;
|
|
margin: 0 4px;
|
|
padding: 0 5px;
|
|
}
|
|
|
|
.sub-menu-outer {
|
|
background: #eee;
|
|
line-height: 45px;
|
|
height: 45px;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
.sub-menu-outer .sub-menu-inner {
|
|
width: 500px;
|
|
margin: auto;
|
|
}
|
|
.sub-menu-inner .option {
|
|
padding: 9px 6px;
|
|
margin: 0 5px;
|
|
}
|
|
.sub-menu-inner .option.active {
|
|
border-bottom: 2px solid #f00;
|
|
}
|
|
|
|
.homepage-wrapper {
|
|
width: 500px;
|
|
margin: auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.search-results,
|
|
.directory-results {
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.directory-results {
|
|
display: flex;
|
|
flex-flow: row;
|
|
}
|
|
|
|
.directory-results > aside {
|
|
flex: 1 6 20%;
|
|
order: 1;
|
|
padding: 0 1em;
|
|
}
|
|
|
|
.directory-results > section {
|
|
flex: 3 1 80%;
|
|
order: 2;
|
|
}
|
|
|
|
.homepage-wrapper {
|
|
margin: 120px auto;
|
|
}
|
|
|
|
.homepage-wrapper .header {
|
|
font-size: 68px;
|
|
font-weight: 100;
|
|
line-height: 0.9em;
|
|
background: url('/images/friendica.svg') top left no-repeat;
|
|
background-size: 61px;
|
|
margin-left: 40px;
|
|
}
|
|
.homepage-wrapper .about {
|
|
text-align: justify;
|
|
line-height: 1.5em;
|
|
color: #555;
|
|
}
|
|
|
|
.homepage-wrapper .profiles {
|
|
margin-top: 3em;
|
|
}
|
|
|
|
.profiles {
|
|
padding: 0 10px;
|
|
column-width: 400px;
|
|
}
|
|
|
|
.profiles > figure {
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
}
|
|
|
|
nav#links a,
|
|
.sub-menu-outer a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.search-results .intro {
|
|
text-align: justify;
|
|
}
|
|
|
|
.site,
|
|
.profile {
|
|
width: 100%;
|
|
text-decoration: none;
|
|
color: #000;
|
|
padding: 2px;
|
|
outline: none;
|
|
margin: 5px 0;
|
|
display: inline;
|
|
background-color: rgba(0, 0, 0, .01);
|
|
border-radius: 23px .5em 23px .5em;
|
|
}
|
|
|
|
.site {
|
|
padding: 14px 2px;
|
|
margin: 20px 0;
|
|
border-bottom: 1px dashed #ccc;
|
|
}
|
|
|
|
.profile.selected,
|
|
.profile: focus,
|
|
.profile: hover {
|
|
padding: 1px;
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
.site .site-info,
|
|
.site .site-supports,
|
|
.profile .profile-photo,
|
|
.profile .profile-info {
|
|
display: table-cell;
|
|
vertical-align: top;
|
|
text-align: left;
|
|
}
|
|
.site .site-supports {
|
|
text-align: right;
|
|
padding: 8px;
|
|
}
|
|
|
|
.profile .profile-photo {
|
|
float: left;
|
|
margin: 8px;
|
|
border-radius: 15px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
.site .site-info,
|
|
.profile .profile-info {
|
|
padding: 8px;
|
|
width: 100%;
|
|
}
|
|
.site .site-info strong,
|
|
.profile .profile-info strong {
|
|
font-weight: 600;
|
|
}
|
|
.site .site-info .fa,
|
|
.profile .profile-info .fa {
|
|
line-height: 1.1em;
|
|
color: #999;
|
|
}
|
|
.site .site-info .url,
|
|
.profile .profile-info .url {
|
|
font-size: 80%;
|
|
margin-bottom: 3px;
|
|
color: #555;
|
|
|
|
/** @see https: //css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ */
|
|
overflow-wrap: break-word;
|
|
word-wrap: break-word;
|
|
-ms-word-break: break-all;
|
|
word-break: break-all;
|
|
word-break: break-word;
|
|
-ms-hyphens: auto;
|
|
-moz-hyphens: auto;
|
|
-webkit-hyphens: auto;
|
|
hyphens: auto;
|
|
}
|
|
|
|
.profile .profile-info .description {
|
|
margin-bottom: .5em;
|
|
}
|
|
|
|
.search-wrapper {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 500px;
|
|
background: #f5f5f5;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
height: 38px;
|
|
line-height: 22px;
|
|
}
|
|
.search-wrapper .search-field {
|
|
line-height: 22px;
|
|
display: block;
|
|
border: none;
|
|
outline: none;
|
|
background: none;
|
|
padding: 8px 12px;
|
|
padding-right: 117px;
|
|
width: 100%;
|
|
}
|
|
.search-wrapper .reset {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 65px;
|
|
height: 25px;
|
|
width: 25px;
|
|
margin: 6px;
|
|
padding: 0;
|
|
line-height: 1;
|
|
font-size: 12px;
|
|
color: #555;
|
|
background: #eee;
|
|
border: 1px solid #ddd;
|
|
border-radius: 20px;
|
|
font-family: 'FontAwesome';
|
|
font-weight: 100;
|
|
line-height: 25px;
|
|
text-decoration: none;
|
|
}
|
|
.search-wrapper .search {
|
|
border: none;
|
|
border-left: 1px solid #ddd;
|
|
color: #555;
|
|
background: #eee;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
height: 36px;
|
|
width: 65px;
|
|
border-radius: 0 8px 8px 0;
|
|
}
|
|
|
|
.health {font-size: 120%; vertical-align: bottom;}
|
|
.health.very-bad { color: #f99; }
|
|
.health.bad { color: #f1ba7a; }
|
|
.health.neutral { color: #e6e782; }
|
|
.health.ok { color: #bef273; }
|
|
.health.good { color: #7cf273; }
|
|
.health.perfect { color: #33ff80; }
|
|
|
|
.btn {
|
|
border: 1px solid #ddd;
|
|
color: #555;
|
|
background: #eee;
|
|
border-radius: 8px 8px;
|
|
height: 36px;
|
|
line-height: 34px;
|
|
min-width: 80px;
|
|
padding: 0 10px;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* smaller than tablet in portrait */
|
|
@media screen and (max-width: 880px) {
|
|
|
|
body {
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.mobile {
|
|
display: inherit !important;
|
|
}
|
|
|
|
#top-bar .header {
|
|
overflow: hidden;
|
|
width: 0px;
|
|
padding-left: 28px;
|
|
height: 28px;
|
|
background-size: 28px;
|
|
}
|
|
|
|
#top-bar .search-form {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 0 35px;
|
|
margin: 0;
|
|
}
|
|
|
|
.homepage-wrapper,
|
|
.search-wrapper {
|
|
width: 100%;
|
|
max-width: 500px;
|
|
}
|
|
.homepage-wrapper .search-wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
.homepage-wrapper {
|
|
margin: 90px auto;
|
|
}
|
|
|
|
.search-results,
|
|
.sub-menu-outer .sub-menu-inner {
|
|
width: 95%;
|
|
max-width: 500px;
|
|
}
|
|
|
|
.hamburger {
|
|
padding: 8px;
|
|
font-size: 22px;
|
|
line-height: 22px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
nav#links {
|
|
position: absolute;
|
|
width: 100%;
|
|
top: 54px;
|
|
right: 0;
|
|
padding-bottom: 5px;
|
|
}
|
|
nav#links .viewport {
|
|
position: absolute;
|
|
z-index: 1;
|
|
left: 100%;
|
|
width: 100%;
|
|
transition: left ease 200ms;
|
|
background: #fff;
|
|
padding: 20px 0;
|
|
box-shadow: 1px 3px 3px rgba(0,0,0,0.2);
|
|
font-size: 150%;
|
|
text-align: center;
|
|
}
|
|
nav#links.open .viewport {
|
|
left: 0%;
|
|
}
|
|
#top-bar nav#links .viewport {
|
|
background: #f5f5f5;
|
|
}
|
|
nav#links h3 {
|
|
margin: 0;
|
|
display: block;
|
|
line-height: 2em;
|
|
}
|
|
nav#links a {
|
|
display: block;
|
|
line-height: 2.5em;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.profile,
|
|
.profile .profile-info {
|
|
overflow-wrap: break-word;
|
|
word-wrap: break-word;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.directory-results {
|
|
flex-flow: column;
|
|
}
|
|
|
|
.directory-results > aside {
|
|
order: 2;
|
|
}
|
|
|
|
.directory-results > section {
|
|
order: 1;
|
|
}
|
|
|
|
}
|
|
|
|
/* The moment the header starts getting squashed */
|
|
@media screen and (max-width: 520px) {
|
|
.homepage-wrapper {
|
|
margin: 30px auto;
|
|
}
|
|
.homepage-wrapper .header {
|
|
font-size: 40px;
|
|
background-size: 36px;
|
|
display: inline-block;
|
|
margin-left: 18px;
|
|
width: 275px;
|
|
}
|
|
}
|
|
|
|
/* close to mobile in portrait */
|
|
@media screen and (max-width: 400px) {
|
|
|
|
.profile .profile-photo {
|
|
width: 60px;
|
|
border-radius: 11.25px;
|
|
margin: 8px 4px;
|
|
}
|
|
.profile .profile-info .url {
|
|
display: none;
|
|
}
|
|
|
|
}
|