memex/asset/style.css

281 lines
6.1 KiB
CSS
Vendored

/* VARIABLES */
:root {
/* COLOR */
--color-menu0: #000; /* bg */
--color-menu1: #333; /* low */
--color-menu2: #999; /* mid */
--color-menu3: #ddd; /* high */
--color-bg: #ddd; /* bg main */
--color-content0: #ccc; /* bg */
--color-content1: #bbb; /* low */
--color-content2: #999; /* mid */
--color-content3: #000; /* high */
/* 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*/
}
html {
font-family: 'Monaco', 'Andale Mono', 'Deja Vu Sans Mono', 'Consolas', monospace;
background: var(--color-bg);
box-sizing: border-box;
padding: 0em;
margin: 0;
}
* {
box-sizing: border-box;
}
body {
padding: 0em;
margin: 0;
}
/* MENU */
.menu {
background: var(--color-menu0);
padding-top: var(--size-gutter);
width: var(--menu-width);
position: fixed;
height: 100%;
z-index: 100;
left: 0px;
top: 0px;
}
.menu a {
color: var(--color-menu1);
}
.menu:hover a {
color: var(--color-menu2);
}
.menu:hover a:hover {
color: var(--color-menu3);
}
.menu-spacer {
height: var(--menu-item-spacer);
width: 100%;
float: left;
}
/* MENU ITEMS */
.menu-item {
padding-top: calc(var(--menu-item-vert-sep) / 2);
padding-bottom: calc(var(--menu-item-vert-sep) / 2);
font-size: var(--type-icon-size);
box-sizing: border-box;
margin: 0px auto;
width: 100%;
float: left;
}
.menu-item .count {
padding-right: calc(var(--menu-item-elem-sep) / 2);
display: inline-block;
text-align: right;
float: left;
width: 50%;
}
.menu-item i {
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;
text-align: center;
float: left;
}
/* MENU TAGS */
.menu-tag-container {
margin: 0 auto;
display: table;
}
.menu-tag-container i {
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-menu1);
display: table-row;
text-align: center;
width: 100%;
float: left;
}
.menu:hover .menu-tag-container i {
color: var(--color-menu2);
}
.menu-tag {
padding-bottom: calc(var(--menu-tag-sep) / 2);
padding-top: calc(var(--menu-tag-sep) / 2);
font-size: var(--size-font-body);
display: table-row;
width: 100%;
float: left;
clear: left;
}
.menu-tag-count {
padding-right: var(--menu-tag-sep);
text-align: right;
float: left;
}
.menu-tag-label {
text-align: left;
float: left;
}
/* CONTENT */
.container {
margin-left: var(--menu-width);
}
.grid {
margin: var(--size-gutter) auto;
}
.grid:after {
/* clearfix */
display: block;
content: '';
clear: both;
}
.grid-item, .grid-item--width2 {
text-decoration: none;
border-radius: var(--size-item-corner);
margin-bottom: var(--size-gutter);
background: var(--color-content0);
width: var(--size-grid-column);
padding: var(--size-gutter);
box-sizing: border-box;
float: left;
color: #000;
}
@media screen and (min-width: 886px) {
.grid-item--width2 {
width: calc(var(--size-grid-column) * 2 + var(--size-gutter));
}
}
.grid-item img {
/*margin: calc(var(--size-gutter) * -1);
width: calc(100% + var(--size-gutter)*2);*/
max-width: 100%;
height: auto;
clear: both;
}
.grid-item:hover {
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, .1);
background: var(--color-content1);
}
/* 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;
}
.grid-item .link .title {
color: var(--color-content3);
font-size: var(--size-font-title);
text-decoration: none;
float: left;
clear: both;
}
.grid-item .link .link-line {
color: var(--color-content2);
margin-top: var(--size-item-elem-padding);
float: left;
clear: both;
}
.grid-item .link i {
color: var(--color-content2);
float: left;
}
.grid-item .link .link-title {
color: var(--color-content2);
font-size: var(--size-font-body);
float: left;
}
.grid-item:hover .link .link-title {
color: var(--color-content3);
}
.grid-item .link:hover .title {
/*background-color: var(--color-content3);
color: var(--color-content1);*/
}
.grid-item .link:hover .link-title {
background-color: var(--color-content3);
color: var(--color-content1);
}
/* TYPE */
.grid-item a .type {
color: var(--color-content2);
font-size: var(--type-icon-size);
padding-top: var(--size-gutter);
padding-bottom: var(--size-gutter);
width: calc(var(--type-icon-size)*2 + var(--size-gutter));
vertical-align: top;
text-align: center;
position: absolute;
right: 0px;
top: 0px;
}
.grid-item:hover a .type {
color: var(--color-content2);
}
.grid-item:hover a .type:hover {
color: var(--color-content3);
}
/* LINK, NOTE, QUOTE, TERM, TAGS */
.note, .quote, .term, .tags, .prog {
padding-top: var(--size-item-elem-padding);
font-size: var(--size-font-body);
color: var(--color-content2);
float: left;
clear: both;
}
.grid-item:hover .link,
.grid-item:hover .note,
.grid-item:hover .quote,
.grid-item:hover .term,
.grid-item:hover .prog
{
color: var(--color-content3);
}
.tags a {
color: var(--color-content2);
text-decoration:none;
}
.grid-item:hover .tags a {
color: var(--color-content3);
}
.grid-item:hover .tags a:hover {
background-color: var(--color-content3);
color: var(--color-content1);
}
/* SMALL ICONS */
.textIcon {
color: var(--color-content1);
margin-right: var(--size-item-elem-sep);
}
.grid-item:hover .textIcon {
color: var(--color-content2);
}