simple-object-validation
Version:
Library for JavaScript Object validation
297 lines (283 loc) • 5.53 kB
CSS
body {
font-family: Sans-Serif;
margin: 0px;
padding: 0px;
background: #333333;
color: #f0f0f0;
font-size: 16px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"
}
body > .links {
position: absolute;
top: 20px;
right: 20px;
}
body > .links a {
width: 64px;
display: inline-block;
}
body > .links a img {
max-width: 100%;
}
.nav-side-menu .links {
background: #f0f0f0;
padding: 40px 0 60px 0;
color: #222222;
text-align: center;
}
.nav-side-menu .links a {
color: #23527c;
}
.menu-content {
background: #ffffff;
}
a {
color: rgb(114, 203, 236);
text-decoration: none;
}
a:hover, a:focus {
color: rgb(114, 203, 236);
text-decoration: underline;
}
h1.top {
margin-top: 0;
}
h1 {
margin-top: 40px;
padding: 10px 0;
color: rgb(114, 203, 236);
}
h2 {
padding: 10px 0;
margin-top: 20px;
margin-bottom: 5px;
}
.definition {
font-family: monospace;
margin: 10px 0 30px 0;
color: #72cbec;
}
.definition em {
color: #bce4f3;
font-style: normal;
}
.definition em em {
color: #ddeaef;
}
pre {
font-size: 1.5rem;
border-radius: 0;
background: #f0f0f0;
margin-top: 20px;
}
pre code {
position: relative;
}
.hljs {
background: #f0f0f0;
}
pre a {
color: inherit;
position: relative;
}
pre a:hover {
color: inherit;
text-decoration: none;
cursor: text;
}
.pre-wrapper {
position: relative;
}
.pre-wrapper .pre-info-text {
position: absolute;
top: -20px;
right: 0;
font-size: 14px;
padding: 0 5px;
background: rgb(228, 165, 23);
background: #666666;
transition: opacity 0.2s, visibility 0.2s;
opacity: 0;
visibility: hidden;
z-index: 1;
color: #ffffff;
line-height: 20px;
height: 20px;
}
.pre-wrapper:hover .pre-info-text {
opacity: 1;
visibility: visible;
}
.control-key-down .pre-wrapper:hover .pre-info-text {
opacity: 0.5;
transition: opacity 1s;
}
.control-key-down pre a:hover {
color: #2b7e95;
cursor: pointer;
text-decoration: underline;
}
/*
pre a:after {
content: 'Go to definition';
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
position: absolute;
left: 0;
font-size: 12px;
bottom: -34px;
text-align: center;
padding: 5px 10px;
background: #ffffff;
color: #000000;
border-radius: 5px;
white-space: nowrap;
transition: opacity 0.5s, visibility 0.5s;
opacity: 0;
visibility: hidden;
box-shadow: 0 2px 5px 0 #999999;
z-index: 1;
}
.control-key-down pre a:hover:after {
opacity: 1;
visibility: visible;
}
*/
pre a:active,
pre a:focus {
color: inherit;
text-decoration: none;
}
.nav-side-menu {
overflow: auto;
font-family: sans-serif;
font-size: 14px;
font-weight: 200;
background-color: #f0f0f0;
position: fixed;
top: 0px;
width: 300px;
height: 100%;
}
.nav-side-menu .brand {
background-color: #ffffff;
display: block;
text-align: center;
font-size: 20px;
color: #222222;
margin-top: 8px;
}
.nav-side-menu .brand p {
line-height: 30px;
}
.nav-side-menu .brand p strong {
font-size: 36px;
font-weight: normal;
margin-bottom: 10px;
display: inline-block;
color: #c0c0c0;
}
.nav-side-menu .brand img {
margin-right: 12px;
}
.nav-side-menu .toggle-btn {
display: none;
}
.menu-list a {
color: #777777;
font-size: 16px;
display: block;
line-height: 40px;
height: 40px;
padding: 0 12px;
text-decoration: none;
border-bottom: 1px solid #e0e0e0;
padding-left: 32px;
position: relative;
}
.menu-list a:after {
content: '\f054';
font-family: 'FontAwesome';
font-weight: normal;
font-size: 1.5rem;
position: absolute;
right: 1.5rem;
top: 0;
}
.menu-list a.headline {
padding: 0 12px;
font-size: 20px;
line-height: 48px;
height: 48px;
margin-top: 10px;
color: #444444;
}
.menu-list a.headline:first-child {
margin-top: 0;
}
.menu-list a:hover {
background: #4FADC8;
color: #ffffff;
}
.menu-list a:active {
background: #2E7D94;
color: #ffffff;
}
.menu-list a.active {
background: #e0e0e0;
font-weight: bold;
color: #444444;
}
.menu-list a.active:hover {
color: #444444;
}
.menu-list a > i.fa {
min-width: 30px;
text-align: center;
}
@media (max-width: 767px) {
.nav-side-menu {
position: relative;
width: 100%;
margin-bottom: 10px;
border-right: none;
}
.nav-side-menu .toggle-btn {
display: block;
cursor: pointer;
position: absolute;
right: 10px;
top: 10px;
z-index: 10 ;
padding: 3px;
background-color: #2E7D94;
color: #ffffff;
width: 40px;
text-align: center;
}
.nav-side-menu .brand {
text-align: left ;
line-height: 50px ;
padding-left: 12px;
}
.nav-side-menu .links {
padding: 10px 20px;
text-align: right;
background: none;
}
}
.content {
padding-left: 12px;
}
@media (min-width: 767px) {
.nav-side-menu .menu-list .menu-content {
display: block;
}
.content {
padding: 20px 20px 20px 340px;
}
.nav-side-menu .brand {
text-align: left;
padding-left: 18px;
padding-bottom: 30px;
}
}