shrub/web/tree/main.css

345 lines
7.0 KiB
CSS
Raw Normal View History

2016-01-21 19:33:19 +03:00
img.logo {
2015-10-12 09:17:56 +03:00
height: 2rem;
2016-01-21 19:33:19 +03:00
width: 2rem; }
img.logo.first {
margin-bottom: 2rem; }
.short {
width: 75%; }
.loading:before {
font-family: 'scp';
2016-01-21 19:33:19 +03:00
background-color: #000;
color: #fff;
padding: 0;
margin: 0;
width: 1.6rem;
height: 1.6rem;
text-align: center;
font-size: .8rem;
display: block;
2016-01-21 19:33:19 +03:00
font-weight: 600;
z-index: 3; }
.loading.state-0:before {
content: "\25D3"; }
.loading.state-1:before {
content: "\25D1"; }
.loading.state-2:before {
content: "\25D2"; }
.loading.state-3:before {
content: "\25D0"; }
.nav.container {
position: fixed;
left: 50%;
width: 100%;
padding-top: 0; }
2016-01-21 19:33:19 +03:00
@media (min-width: 544px) {
.nav.container {
margin-left: -288px; } }
@media (min-width: 768px) {
.nav.container {
margin-left: -360px; } }
@media (min-width: 992px) {
.nav.container {
margin-left: -470px; } }
@media (min-width: 1200px) {
.nav.container {
margin-left: -570px; } }
2016-01-30 05:18:51 +03:00
.nav.container .loading {
padding-top: 3rem;
display: block; }
2016-01-21 19:33:19 +03:00
@media (max-width: 767px) {
.nav.container {
top: 0; }
.nav.container.m-down,
.nav.container.m-up {
position: absolute; }
.nav.container.m-down.m-fixed {
2016-01-30 05:18:51 +03:00
position: fixed; }
.nav.container .loading {
padding-top: 0; } }
@media (max-width: 543px) {
.nav.container {
left: 0; } }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
.menu .contents {
padding-top: 3rem; }
.ctrl {
padding-left: 0.9375rem;
background-color: #fff;
max-width: 16.66667%;
2016-01-30 05:18:51 +03:00
transition: max-width .2s ease-in-out;
position: fixed;
z-index: 100; }
2016-01-21 19:33:19 +03:00
.ctrl ul.nav {
margin-top: 2rem;
overflow: hidden; }
.ctrl ul.nav li {
width: 100%;
overflow: hidden;
white-space: nowrap; }
.ctrl ul.nav:hover {
overflow: visible; }
.ctrl a.nav-link:hover {
text-decoration: underline; }
.ctrl a.nav-link {
letter-spacing: 1px; }
.ctrl .selected a.nav-link {
font-weight: 500;
letter-spacing: 0; }
.ctrl.open,
.ctrl:hover {
max-width: 33.33333%;
2016-01-30 05:18:51 +03:00
min-width: 16.66667%;
width: auto; }
2016-01-21 19:33:19 +03:00
@media (max-width: 991px) {
ul.nav {
line-height: 1.3rem; }
a.nav-link {
font-size: .8rem; } }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
@media (max-width: 767px) {
.ctrl {
position: relative;
max-height: 3rem;
max-width: 100%;
2016-01-21 19:33:19 +03:00
padding-top: 1rem;
2015-10-21 00:53:15 +03:00
background-color: #fff;
2015-02-18 06:03:21 +03:00
overflow: hidden;
2016-01-21 19:33:19 +03:00
border-bottom: 1px solid #000;
-webkit-transition: max-height 0.2s ease-in-out;
-moz-transition: max-height 0.2s ease-in-out;
transition: max-height 0.2s ease-in-out; }
.ctrl.open,
.ctrl:hover {
width: inherit;
max-width: inherit; }
2016-01-21 19:33:19 +03:00
ul.nav {
2015-10-21 17:00:53 +03:00
line-height: 2rem;
2016-01-21 19:33:19 +03:00
margin-bottom: 2rem; }
a.nav-link {
font-size: 1rem; }
.ctrl.open {
max-height: 36rem; }
2016-01-21 19:33:19 +03:00
.ctrl.open ul.nav {
max-height: 9rem;
overflow-y: scroll; }
ul.nav {
margin-top: 1rem; } }
2016-01-30 05:18:51 +03:00
@media (max-width: 543px) {
.ctrl {
padding-left: 1.875rem; } }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
.navbar-toggler {
font-size: 24px;
2016-01-21 19:33:19 +03:00
transition: opacity .2s, transform .3s;
-webkit-transition: opacity .2s, transform .3s; }
.open .navbar-toggler {
2016-01-21 19:33:19 +03:00
transform: rotate(0.25turn);
opacity: .2; }
@media (min-width: 768px) {
.ctrl .navbar-toggler {
2016-01-30 05:18:51 +03:00
display: none; }
.ctrl .navbar-toggler.show {
display: block;
padding: 0; } }
2016-01-21 19:33:19 +03:00
@media (max-width: 767px) {
.navbar-toggler {
padding: 0;
margin-left: 2rem; } }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
.icon div, .icon a {
display: inline-block; }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
.icon a {
margin-right: .6rem; }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
.icon .home {
margin: 6px 9px 12px 0;
width: 24px;
height: 24px;
border-radius: 50%;
background-color: transparent;
border: 6px solid #B1B7BD; }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
.icon .dpad {
display: block; }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
.icon .up {
width: 1px;
height: 1px;
border: 12.0006px solid transparent;
border-bottom: 18px solid #000;
border-top: 0 solid transparent; }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
.icon .prev {
width: 1px;
height: 1px;
border: 12.0006px solid transparent;
border-right: 18px solid #000;
border-left: 0 solid transparent; }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
.icon .next {
width: 1px;
height: 1px;
border: 12.0006px solid transparent;
border-left: 18px solid #000;
border-right: 0 solid transparent;
margin-right: 0; }
@media (max-width: 991px) {
.icon .home {
width: 18px;
height: 18px;
border-radius: 50%;
background-color: transparent;
border-width: 4px; }
.icon .up {
width: 1px;
height: 1px;
border: 8.0004px solid transparent;
border-bottom: 12px solid #000;
border-top: 0 solid transparent;
margin-left: 1px; }
.icon .prev {
width: 1px;
height: 1px;
border: 8.0004px solid transparent;
border-right: 12px solid #000;
border-left: 0 solid transparent;
2016-01-30 05:18:51 +03:00
margin-right: .6rem; }
2016-01-21 19:33:19 +03:00
.icon .next {
width: 1px;
height: 1px;
border: 8.0004px solid transparent;
border-left: 12px solid #000;
border-right: 0 solid transparent; } }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
@media (max-width: 767px) {
.icon {
margin-left: 0; }
.icon .dpad {
display: inline; }
2016-01-21 19:33:19 +03:00
.icon .home {
margin-top: 0;
margin-bottom: 0; } }
2016-01-30 05:18:51 +03:00
@keyframes menu-open {
0% {
visibility: hidden; }
1% {
visibility: visible; }
100% {
visibility: visible; } }
@keyframes menu-close {
0% {
visibility: visible; }
1% {
visibility: visible; }
100% {
visibility: hidden; } }
2016-01-21 19:33:19 +03:00
.menu {
padding-left: 0;
padding-right: 0;
2016-01-30 05:18:51 +03:00
overflow: hidden;
position: fixed;
2016-02-02 03:00:45 +03:00
z-index: 99;
margin-top: -3rem; }
2016-01-21 19:33:19 +03:00
.menu .contents {
padding-left: 0.9375rem;
padding-right: 0.9375rem;
padding-bottom: 6rem;
position: relative;
left: -100%;
-webkit-transition: left 0.3s ease-in-out;
-moz-transition: left 0.3s ease-in-out;
transition: left 0.3s ease-in-out; }
.menu .close {
margin-top: -2rem; }
2016-02-02 03:00:45 +03:00
.menu .close:hover {
opacity: 1; }
2016-01-21 19:33:19 +03:00
.menu h2 {
font-size: 1rem;
padding-top: 3rem; }
.menu h2:first-of-type {
padding-top: 0; }
.menu label.sum {
font-family: 'scp';
margin-left: 0.9375rem;
font-size: 1.2rem; }
.menu .name,
.menu .planet {
display: inline-block; }
.menu .name,
.menu .planet,
.menu .room {
font-size: .8rem; }
.menu .name {
min-width: 33.333%;
font-size: .9rem; }
.menu .planet {
min-width: 66.667%; }
.menu.depth-1 .contents {
background-color: #f7f7f9;
border-left: 2px solid #B1B7BD; }
.menu.depth-2 .contents {
background-color: #eceeef;
border-left: 2px solid #B1B7BD; }
2016-01-30 05:18:51 +03:00
.menu.closed {
animation-name: menu-close;
animation-duration: .3s;
animation-fill-mode: forwards; }
.menu.open {
animation-name: menu-open;
animation-duration: .3s;
animation-fill-mode: forwards; }
2016-01-21 19:33:19 +03:00
.menu.open .contents {
left: 0; }
@media (max-width: 767px) {
.menu {
height: 100%;
padding-left: 0.9375rem; }
.menu .contents {
left: inherit;
top: -100%;
padding-top: 0.9375rem;
-webkit-transition: top 0.3s ease-in-out;
-moz-transition: top 0.3s ease-in-out;
transition: top 0.3s ease-in-out; }
.menu .close {
margin-top: 0; }
.menu.open .contents {
top: 0; } }
2016-01-30 05:18:51 +03:00
2016-01-21 19:33:19 +03:00
.list h1 {
font-size: inherit;
font-weight: inherit; }
.list.children h1 {
font-weight: 500;
font-size: 1.4rem; }