123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- :root {
- --color-blue: #049EF4;
- --text-color: #444;
- --border-style: 1px solid #EEE;
- --header-height: 48px;
- --panel-padding: 16px;
- }
- @font-face {
- font-family: 'Roboto Mono';
- src: local('Roboto Mono'), url('../files/RobotoMono-Regular.woff2') format('woff2');
- font-weight: normal;
- font-style: normal;
- }
- * {
- box-sizing: border-box; /* don't let padding modify width */
- }
- html, body {
- height: 100%;
- }
- body {
- margin: 0px;
- overflow: hidden;
- font-family: 'Roboto Mono', monospace;
- font-size: 14px;
- line-height: 24px;
- background-color: #ffffff;
- color: var(--text-color);
- }
- a {
- text-decoration: none;
- }
- h1 {
- font-size: 18px;
- font-weight: 500;
- }
- h2 {
- padding: 8px 0;
- margin: 6px 0 12px 0;
- font-size: 14px;
- font-weight: normal;
- color: var(--color-blue);
- }
- h3 {
- margin: 4px 0;
- font-size: 14px;
- line-height: 23px;
- font-weight: 500;
- text-transform: uppercase;
- color: #9E9E9E;
- }
- h1 a {
- color: var(--color-blue);
- }
- #header {
- display: flex;
- height: 48px;
- border-bottom: var(--border-style);
- align-items: center;
- }
- #header h1 {
- margin-left: 15px;
- flex: 1;
- }
- #panel {
- position: fixed;
- left: 0px;
- width: 300px;
- height: 100%;
- overflow: auto;
- border-right: var(--border-style);
- display: flex;
- flex-direction: column;
- transition: 0s 0s height;
- }
- #panel #exitSearchButton {
- position: absolute;
- width: 40px;
- height: 40px;
- top: 4px;
- right: calc(var(--panel-padding) - 12px);
- z-index: 1000;
- display: none;
- background-size: 20px 20px;
- background-position: 50% 50%;
- background-repeat: no-repeat;
- background-image: url(../files/ic_close_black_24dp.svg);
- cursor: pointer;
- }
- #panel.searchFocused #exitSearchButton {
- display: block;
- }
- #panel.searchFocused #language {
- display: none;
- }
- #panel.searchFocused #filter {
- background-image: none;
- padding-left: var(--panel-padding);
- }
- #panel #expandButton {
- margin-right: 14px;
- margin-left: 4px;
- display: none;
- }
- #panel #sections {
- font-weight: 500;
- display: flex;
- justify-content: center;
- z-index: 1000;
- position: relative;
- height: 100%;
- align-items: center;
- }
- #panel #sections * {
- padding: 0 var(--panel-padding);
- height: 100%;
- position: relative;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- #panel #sections .selected:after {
- content: "";
- position: absolute;
- left: 0;
- right: 0;
- bottom: -1px;
- border-bottom: 1px solid black;
- }
- #panel #sections a {
- color: #9E9E9E;
- }
- #panel #filter {
- width: 100%;
- height: 48px;
- padding: 0px 44px;
- font-weight: 500;
- font-size: 14px;
- color: var(--text-color);
- outline: none;
- border: 0px;
- border-bottom: var(--border-style);
- background-size: 20px 20px;
- background-image: url(../files/ic_search_black_24dp.svg);
- background-position: 14px 50%;
- background-repeat: no-repeat;
- }
- #panel #language {
- font-family: 'Roboto Mono', monospace;
- position: absolute;
- top: 9px;
- right: 8px;
- border: 0px;
- font-size: 14px;
- font-weight: 500;
- background: url(ic_arrow_drop_down_black_24dp.svg) no-repeat;
- background-position: right center;
- background-color: white;
- padding: 4px 24px 4px 8px;
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
- }
- #panel #language:focus {
- outline: none;
- }
- #contentWrapper {
- flex: 1;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- transform: translate3d(0,0,0);
- }
- #panel #content {
- flex: 1;
- overflow-y: scroll;
- padding: 0 var(--panel-padding) 24px var(--panel-padding);
- }
- #panel #content ul {
- list-style-type: none;
- padding: 0px;
- margin: 0px 0 24px 0;
- }
- #panel #content ul li {
- margin: 2px 0;
- }
- #panel #content a {
- color: var(--text-color);
- }
- #panel #content a:hover,
- #panel #content .selected {
- color: var(--color-blue);
- }
- #panel #content .selected {
- text-decoration: underline;
- }
- #panel #content .hidden {
- display: none !important;
- }
- iframe {
- position: absolute;
- border: 0px;
- left: 300px;
- width: calc(100% - 300px);
- height: 100%;
- overflow: auto;
- }
- /* mobile */
- @media all and ( max-width: 640px ) {
- #panel #expandButton {
- display: block;
- }
- #panel {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- right: 0;
- z-index: 100;
- overflow-x: hidden;
- transition: 0s 0s height;
- border: none;
- height: var(--header-height);
- transition: 0s 0.2s height;
- }
- #panel.open {
- height: 100%;
- transition: 0s 0s height;
- }
- #panelScrim {
- pointer-events: none;
- background-color: rgba(0,0,0,0);
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: 1000;
- pointer-events: none;
- transition: .2s background-color;
- }
- #panel.open #panelScrim {
- pointer-events: auto;
- background-color: rgba(0,0,0,0.4);
- }
- #contentWrapper {
- position: absolute;
- right: 0;
- top: 0;
- bottom: 0;
- background: white;
- box-shadow: 0 0 8px rgba(0,0,0,.1);
- width: calc(100vw - 60px);
- max-width: 360px;
- z-index: 10000;
- transition: .25s transform;
- overflow-x: hidden;
- margin-right: -380px;
- }
- #panel.open #contentWrapper {
- transform: translate3d(-380px, 0 ,0);
- }
- iframe {
- position: absolute;
- left: 0;
- top: var(--header-height);
- width: 100%;
- height: calc(100% - var(--header-height));
- }
- }
|