memex/docs/asset/style.css

496 lines
12 KiB
CSS
Raw Normal View History

2018-07-17 18:17:43 +00:00
/* VARIABLES */
:root {
/* COLOR */
--color-main-bg-i: #ddd; /*idle*/
--color-main-bg-e: #ddd; /*enabled*/
--color-menu-bg-i: #000; /*idle*/
--color-menu-bg-e: #000; /*enabled*/
2018-07-24 11:50:04 +00:00
--color-menu-item-i: #333; /*idle*/
--color-menu-item-e: #999; /*enabled*/
--color-menu-item-a: #ddd; /*ascent*/
2018-07-17 18:17:43 +00:00
2018-07-24 11:50:04 +00:00
--color-content-bg-i: #ccc; /*idle*/
--color-content-bg-e: #bbb; /*enabled*/
--color-content-item-s: #bbb; /*sub*/
--color-content-item-i: #999; /*idle*/
--color-content-item-e: #666; /*enabled*/
--color-content-item-t: #000; /*title*/
--color-content-item-a: #000; /*ascent*/
2018-07-18 15:28:10 +00:00
--color-content-image-s: rgba(255, 255, 255, .1); /*sub*/
--color-content-image-i: rgba(255, 255, 255, .3); /*idle*/
--color-content-image-e: rgba(255, 255, 255, .5); /*enabled*/
--color-content-image-t: #fff; /*title*/
--color-content-image-a: #fff; /*ascent*/
2018-07-24 11:50:04 +00:00
--color-overlay-bg-i: #000; /*idle*/
--color-overlay-bg-e: #111; /*enabled*/
--color-overlay-item-s: #111; /*sub*/
--color-overlay-item-i: #222; /*idle*/
--color-overlay-item-e: #333; /*enabled*/
--color-overlay-item-a: #666; /*ascent*/
2018-07-17 18:17:43 +00:00
/* SIZE */
--menu-width: 150px;
--menu-item-vert-sep: 20px; /*vertical space between menu items*/
--menu-item-elem-sep: 10px; /*horizontal space between menu item count and icon*/
--menu-item-spacer: 30px; /*vertical space between menu types (types to terms, terms to tags)*/
--menu-tag-sep: 10px; /*space between tag items*/
--size-gutter: 20px;
--size-grid-column: 350px;
--size-item-corner: 3px;
--size-item-elem-padding: 1em; /*vertical space between grid item internal elements (tags, notes, quotes etc)*/
--size-item-elem-sep: 0.75em; /*horizontal space between item element icon and element text (tag icon and tags)*/
--size-font-title: 1em;
--size-font-body: 0.8em;
--type-icon-size: 24px; /*font size of type icon/count*/
2018-07-23 13:20:03 +00:00
--animation-time: 200ms;
2018-07-17 18:17:43 +00:00
}
2018-07-22 19:45:04 +00:00
* {
box-sizing: border-box;
}
2018-07-17 18:17:43 +00:00
html {
font-family: 'Monaco', 'Andale Mono', 'Deja Vu Sans Mono', 'Consolas', monospace;
background: var(--color-main-bg-i);
padding: 0em;
2018-07-17 18:17:43 +00:00
margin: 0;
2018-07-23 13:20:03 +00:00
overflow-y: scroll;
2018-07-13 15:56:09 +00:00
}
2018-07-17 18:17:43 +00:00
body {
padding: 0em;
margin: 0;
}
2018-07-14 10:07:08 +00:00
2018-07-16 12:38:07 +00:00
/* MENU */
.menu {
background: var(--color-menu-bg-i);
2018-07-17 18:17:43 +00:00
padding-top: var(--size-gutter);
width: var(--menu-width);
position: fixed;
2018-07-16 04:30:40 +00:00
height: 100%;
2018-07-17 18:17:43 +00:00
z-index: 100;
2018-07-16 04:30:40 +00:00
left: 0px;
top: 0px;
2018-07-16 12:38:07 +00:00
}
2018-07-18 10:12:02 +00:00
.menu:hover {
background: var(--color-menu-bg-e);
}
2018-07-16 12:38:07 +00:00
.menu a {
color: var(--color-menu-item-i);
2018-07-16 12:38:07 +00:00
}
.menu:hover a {
color: var(--color-menu-item-e);
2018-07-16 12:38:07 +00:00
}
.menu:hover a:hover {
color: var(--color-menu-item-a);
2018-07-16 12:38:07 +00:00
}
2018-07-17 14:09:23 +00:00
.menu-spacer {
2018-07-17 18:17:43 +00:00
height: var(--menu-item-spacer);
width: 100%;
float: left;
2018-07-17 14:09:23 +00:00
}
2018-07-17 18:17:43 +00:00
/* MENU ITEMS */
2018-07-16 12:38:07 +00:00
.menu-item {
2018-07-18 10:12:02 +00:00
padding-bottom: calc(var(--menu-item-vert-sep) / 2);
2018-07-17 18:17:43 +00:00
padding-top: calc(var(--menu-item-vert-sep) / 2);
font-size: var(--type-icon-size);
2018-07-16 15:07:13 +00:00
margin: 0px auto;
2018-07-17 18:17:43 +00:00
width: 100%;
float: left;
2018-07-23 13:20:03 +00:00
text-align: center;
2018-07-16 12:38:07 +00:00
}
2018-07-16 15:07:13 +00:00
.menu-item .count {
2018-07-17 18:17:43 +00:00
padding-right: calc(var(--menu-item-elem-sep) / 2);
display: inline-block;
2018-07-16 15:07:13 +00:00
text-align: right;
2018-07-17 18:17:43 +00:00
float: left;
2018-07-16 15:07:13 +00:00
width: 50%;
2018-07-16 12:38:07 +00:00
}
.menu-item i {
2018-07-17 18:17:43 +00:00
margin-left: calc(var(--menu-item-elem-sep) / 2);
margin-top: calc(var(--type-icon-size) / 10);
width: calc(var(--type-icon-size) * 1.25);
display: inline-block;
2018-07-16 12:38:07 +00:00
text-align: center;
2018-07-17 18:17:43 +00:00
float: left;
2018-07-16 12:38:07 +00:00
}
2018-07-16 15:07:13 +00:00
2018-07-17 18:17:43 +00:00
/* MENU TAGS */
2018-07-16 15:07:13 +00:00
.menu-tag-container {
2018-07-17 18:17:43 +00:00
margin: 0 auto;
2018-07-16 15:07:13 +00:00
display: table;
}
.menu-tag-container i {
2018-07-17 18:17:43 +00:00
padding-bottom: calc(var(--menu-item-vert-sep) / 2);
padding-top: calc(var(--menu-item-vert-sep) / 2);
font-size: var(--type-icon-size);
color: var(--color-menu-item-i);
2018-07-16 15:07:13 +00:00
display: table-row;
2018-07-16 12:38:07 +00:00
text-align: center;
2018-07-17 18:17:43 +00:00
width: 100%;
float: left;
2018-07-16 15:07:13 +00:00
}
.menu:hover .menu-tag-container i {
color: var(--color-menu-item-e);
2018-07-16 15:07:13 +00:00
}
.menu-tag {
2018-07-17 18:17:43 +00:00
padding-bottom: calc(var(--menu-tag-sep) / 2);
padding-top: calc(var(--menu-tag-sep) / 2);
font-size: var(--size-font-body);
2018-07-16 15:07:13 +00:00
display: table-row;
2018-07-17 18:17:43 +00:00
width: 100%;
2018-07-16 15:07:13 +00:00
float: left;
clear: left;
2018-07-16 04:30:40 +00:00
}
2018-07-16 15:07:13 +00:00
.menu-tag-count {
2018-07-17 18:17:43 +00:00
padding-right: var(--menu-tag-sep);
2018-07-16 15:07:13 +00:00
text-align: right;
2018-07-17 18:17:43 +00:00
float: left;
2018-07-16 15:07:13 +00:00
}
.menu-tag-label {
text-align: left;
2018-07-17 18:17:43 +00:00
float: left;
2018-07-16 15:07:13 +00:00
}
2018-07-24 11:50:04 +00:00
.noselect {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome and Opera */
}
2018-07-23 13:20:03 +00:00
/* PAGE */
.page-overlay {
/* visual */
2018-07-24 11:50:04 +00:00
background-color: var(--color-overlay-bg-i);
2018-07-23 13:20:03 +00:00
opacity: 0;
-webkit-transition: opacity var(--animation-time) linear;
transition: opacity var(--animation-time) linear;
width: 100%;
height: 100%;
/* position */
position: absolute;
z-index: -100;
left: 0;
top: 0;
/* content */
display: flex;
align-items: center;
justify-content: center;
2018-07-24 11:50:04 +00:00
user-select: none;
2018-07-23 13:20:03 +00:00
}
2018-07-24 11:50:04 +00:00
.page-overlay .content-menu {
width: 100px;
float: left;
text-align: center;
height: 100%;
padding-top: auto;
padding-bottom: auto;
margin-right: 50px;
border-radius: var(--size-item-corner);
}
.page-overlay .content-menu:hover {
background-color: var(--color-overlay-item-i);
}
.page-overlay .content-menu:hover a {
color: var(--color-overlay-item-a);
}
.page-overlay .content-menu a {
color: var(--color-overlay-item-e);
text-decoration: none;
}
.page-overlay .content-menu a {
}
.page-overlay .content-menu .content-menu-option {
height: 100px;
width: 100px;
display: flex;
align-items: center;
justify-content: center;
}
.page-overlay .content form {
float: left;
}
.page-overlay .content .row .key {
width: 100px;
color: var(--color-overlay-item-e);
color: #000;
float: left;
padding: 9px 7px 10px 0;
text-align: right;
margin-right: 0px;
2018-07-23 13:20:03 +00:00
}
.page-overlay .content .row input {
padding: 10px;
width: 400px;
margin-bottom: 10px;
2018-07-24 11:50:04 +00:00
/*background-color: transparent;*/
background-color: var(--color-overlay-bg-e);
2018-07-23 13:20:03 +00:00
color: #fff;
2018-07-24 11:50:04 +00:00
border-width: 0px;
/*border-width: 1px;
2018-07-23 13:20:03 +00:00
border-style: solid;
2018-07-24 11:50:04 +00:00
border-color: var(--color-menu-item-i);*/
2018-07-23 13:20:03 +00:00
border-radius: var(--size-item-corner);
}
2018-07-24 11:50:04 +00:00
.page-overlay .content .row input::placeholder {
2018-07-23 13:20:03 +00:00
opacity: 1;
color: var(--color-menu-item-i);
}
2018-07-24 11:50:04 +00:00
.page-overlay .content .row input:hover {
/*background-color: var(--color-content-item-a);*/
background-color: var(--color-overlay-item-i);
}
.page-overlay .content .row input:focus {
/*background-color: var(--color-content-item-a);*/
background-color: var(--color-overlay-item-e);
}
2018-07-23 13:20:03 +00:00
2018-07-17 18:17:43 +00:00
/* CONTENT */
2018-07-16 04:30:40 +00:00
.container {
2018-07-18 10:12:02 +00:00
background: var(--color-main-bg-i);
2018-07-22 22:42:47 +00:00
margin-left: calc(var(--menu-width) + var(--size-gutter));
margin-right: var(--size-gutter);
2018-07-16 04:30:40 +00:00
}
2018-07-18 10:12:02 +00:00
.container:hover {
background: var(--color-main-bg-e);
}
.grid {
2018-07-17 18:17:43 +00:00
margin: var(--size-gutter) auto;
2018-07-23 13:20:03 +00:00
opacity: 1;
-webkit-transition: opacity 1000ms linear;
transition: opacity 1000ms linear;
2018-07-14 10:07:08 +00:00
}
.grid:after {
2018-07-16 04:30:40 +00:00
/* clearfix */
display: block;
2018-07-17 18:17:43 +00:00
content: '';
clear: both;
2018-07-14 10:07:08 +00:00
}
2018-07-18 11:17:51 +00:00
/* GRID ITEM */
2018-07-17 14:36:13 +00:00
.grid-item, .grid-item--width2 {
2018-07-17 18:17:43 +00:00
border-radius: var(--size-item-corner);
2018-07-18 10:12:02 +00:00
background: var(--color-content-bg-i);
2018-07-17 18:17:43 +00:00
margin-bottom: var(--size-gutter);
width: var(--size-grid-column);
text-decoration: none;
2018-07-17 18:17:43 +00:00
float: left;
2018-07-18 11:35:56 +00:00
padding-bottom: var(--size-gutter);
2018-07-21 17:46:18 +00:00
position: relative;
2018-07-14 15:55:10 +00:00
}
2018-07-17 14:36:13 +00:00
@media screen and (min-width: 886px) {
.grid-item--width2 {
2018-07-17 18:17:43 +00:00
width: calc(var(--size-grid-column) * 2 + var(--size-gutter));
2018-07-17 14:36:13 +00:00
}
}
2018-07-18 11:17:51 +00:00
.grid-item-upper-content {
2018-07-18 11:35:56 +00:00
padding: var(--size-gutter) var(--size-gutter) 0 var(--size-gutter);
2018-07-18 11:17:51 +00:00
display: inline-block;
2018-07-21 17:46:18 +00:00
z-index: 100;
2018-07-18 11:17:51 +00:00
width: 100%;
}
.grid-item-image .grid-item-upper-content {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.grid-item-lower-content {
padding: 0 var(--size-gutter) 0 var(--size-gutter);
z-index: 100;
}
.grid-item-image .grid-item-lower-content {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding-bottom: var(--size-gutter);
2018-07-18 11:17:51 +00:00
}
.grid-item-lower-content:empty {
display: none;
}
.grid-item-image {
2018-07-18 11:35:56 +00:00
padding-bottom: 0;
2018-07-18 15:28:10 +00:00
overflow: hidden;
2018-07-18 11:17:51 +00:00
background: transparent;
}
.grid-item img {
2018-07-18 11:17:51 +00:00
border-radius: var(--size-item-corner);
2018-07-18 15:28:10 +00:00
vertical-align: middle; /* vertical-align css hack removes bottom padding */
object-fit: cover;
2018-07-18 12:55:19 +00:00
margin-bottom: 0px;
2018-07-18 11:17:51 +00:00
width: 100%;
2018-07-18 15:28:10 +00:00
max-height: 1000px;
2018-07-21 17:46:18 +00:00
z-index: 0;
}
2018-07-18 15:28:10 +00:00
2018-07-14 15:55:10 +00:00
.grid-item:hover {
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, .1);
background: var(--color-content-bg-e);
2018-07-14 10:07:08 +00:00
}
2018-07-18 15:28:10 +00:00
.image-overlay {
width: 100%;
height: 100%;
position: absolute;
z-index: 10;
background-color: #000;
opacity: 0;
}
.grid-item-image:hover .image-overlay {
2018-07-21 11:23:06 +00:00
opacity: 0.2;
2018-07-18 11:17:51 +00:00
}
2018-07-14 10:07:08 +00:00
2018-07-13 15:56:09 +00:00
/* LINK */
.grid-item .link {
width: calc(100% - var(--type-icon-size)*2);
float: left;
clear: both;
}
.grid-item .link {
text-decoration: none;
display: inline-block;
}
2018-07-18 15:28:10 +00:00
.grid-item-image .link {
display: none;
}
.grid-item-image:hover .link {
display: initial;
text-shadow: 0 0 3em #000;
}
.grid-item .link .title {
color: var(--color-content-item-t);
font-size: var(--size-font-title);
text-decoration: none;
float: left;
clear: both;
2018-07-13 15:56:09 +00:00
}
2018-07-18 11:17:51 +00:00
.grid-item-image .title {
display: none;
}
.grid-item-image:hover .title {
display: initial;
2018-07-18 15:28:10 +00:00
text-shadow: 0 0 3em #000;
color: white;
2018-07-18 11:17:51 +00:00
}
.grid-item .link .link-line {
margin-top: var(--size-item-elem-padding);
float: left;
clear: both;
2018-07-13 15:56:09 +00:00
}
.grid-item .link i {
float: left;
2018-07-14 15:02:57 +00:00
}
.grid-item .link .link-title {
color: var(--color-content-item-i);
font-size: var(--size-font-body);
float: left;
}
.grid-item:hover .link .link-title {
color: var(--color-content-item-e);
}
.grid-item .link:hover .link-title {
background-color: var(--color-content-item-a);
color: var(--color-content-bg-e);
2018-07-13 15:56:09 +00:00
}
/* TYPE */
2018-07-18 15:28:10 +00:00
.grid-item .type {
2018-07-18 10:12:02 +00:00
width: calc(var(--type-icon-size)*2 + var(--size-gutter));
color: var(--color-content-item-s);
2018-07-18 10:12:02 +00:00
padding-bottom: var(--size-gutter);
font-size: var(--type-icon-size);
padding-top: var(--size-gutter);
vertical-align: top;
text-align: center;
position: absolute;
right: 0px;
top: 0px;
}
2018-07-18 15:28:10 +00:00
.grid-item-image .grid-item-upper-content a .type i {
display: none;
}
.grid-item-image:hover .grid-item-upper-content a .type i {
display: initial;
color: var(--color-content-image-i);
}
.grid-item-image:hover .grid-item-upper-content a:hover .type i {
display: initial;
color: var(--color-content-image-a);
}
.grid-item:hover .type {
color: var(--color-content-item-i);
}
2018-07-18 15:28:10 +00:00
.grid-item:hover .type:hover {
color: var(--color-content-item-a);
}
2018-07-14 15:02:57 +00:00
/* LINK, NOTE, QUOTE, TERM, TAGS */
.note, .quote, .term, .tags, .prog {
2018-07-18 11:35:56 +00:00
padding-top: var(--size-item-elem-padding);
color: var(--color-content-item-i);
2018-07-17 18:17:43 +00:00
font-size: var(--size-font-body);
float: left;
clear: both;
2018-07-14 15:55:10 +00:00
}
.grid-item:hover .link,
.grid-item:hover .note,
.grid-item:hover .quote,
.grid-item:hover .term,
.grid-item:hover .tags,
.grid-item:hover .prog {
color: var(--color-content-item-e);
2018-07-13 15:56:09 +00:00
}
2018-07-21 11:23:06 +00:00
.grid-item-image .grid-item-lower-content .link,
.grid-item-image .grid-item-lower-content .note,
.grid-item-image .grid-item-lower-content .quote,
.grid-item-image .grid-item-lower-content .term,
.grid-item-image .grid-item-lower-content .tags,
.grid-item-image .grid-item-lower-content .prog {
color: var(--color-content-image-t);
}
2018-07-18 11:17:51 +00:00
.grid-item-image .grid-item-lower-content {
display: none;
}
.grid-item-image:hover .grid-item-lower-content {
2018-07-18 15:28:10 +00:00
display: initial;
}
2018-07-14 15:02:57 +00:00
.tags a {
color: var(--color-content-item-i);
2018-07-14 15:02:57 +00:00
text-decoration:none;
}
2018-07-14 15:55:10 +00:00
.grid-item:hover .tags a {
color: var(--color-content-item-e);
2018-07-14 15:55:10 +00:00
}
.grid-item:hover .tags a:hover {
background-color: var(--color-content-item-a);
color: var(--color-content-bg-e);
2018-07-14 15:02:57 +00:00
}
.grid-item-image:hover .tags a {
color: #fff;
}
.grid-item-image:hover .tags a:hover {
color: #fff;
}
2018-07-14 15:55:10 +00:00
/* SMALL ICONS */
2018-07-14 15:24:09 +00:00
.textIcon {
2018-07-18 10:12:02 +00:00
margin-right: var(--size-item-elem-sep);
color: var(--color-content-item-s);
2018-07-14 15:24:09 +00:00
}
2018-07-14 15:55:10 +00:00
.grid-item:hover .textIcon {
color: var(--color-content-item-i);
2018-07-13 15:56:09 +00:00
}