|
@@ -0,0 +1,527 @@
|
|
|
+:root {
|
|
|
+ --color-blue: #049EF4;
|
|
|
+ --text-color: #444;
|
|
|
+ --secondary-text-color: #9e9e9e;
|
|
|
+
|
|
|
+ --font-size: 14px;
|
|
|
+ --line-height: 24px;
|
|
|
+ --font-size-sanserif: 1.128rem;
|
|
|
+ --line-height-sanserif: 1.74rem;
|
|
|
+
|
|
|
+ --border-style: 1px solid #E8E8E8;
|
|
|
+ --header-height: 48px;
|
|
|
+ --panel-width: 300px;
|
|
|
+ --panel-padding: 1.143rem;
|
|
|
+ --page-padding: 1.5rem;
|
|
|
+ --max-width: 760px;
|
|
|
+ --icon-size: 20px;
|
|
|
+
|
|
|
+ --thumbnail-width: 200px;
|
|
|
+}
|
|
|
+
|
|
|
+@font-face {
|
|
|
+ font-family: 'Roboto Mono';
|
|
|
+ src: local('Roboto Mono'), local('RobotoMono-Regular'), url('../files/RobotoMono-Regular.woff2') format('woff2');
|
|
|
+ font-style: normal;
|
|
|
+ font-weight: 400;
|
|
|
+}
|
|
|
+@font-face {
|
|
|
+ font-family: 'Roboto Mono';
|
|
|
+ src: local('Roboto Mono Medium'), local('RobotoMono-Medium'), url('../files/RobotoMono-Medium.woff2') format('woff2');
|
|
|
+ font-style: normal;
|
|
|
+ font-weight: 500;
|
|
|
+}
|
|
|
+
|
|
|
+* {
|
|
|
+ box-sizing: border-box;
|
|
|
+ -webkit-font-smoothing: antialiased;
|
|
|
+ -moz-osx-font-smoothing: grayscale;
|
|
|
+}
|
|
|
+
|
|
|
+html, body {
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+html {
|
|
|
+ font-size: var(--font-size);
|
|
|
+ line-height: var(--line-height);
|
|
|
+}
|
|
|
+
|
|
|
+body {
|
|
|
+ font-family: 'Roboto Mono', monospace;
|
|
|
+ margin: 0px;
|
|
|
+ overflow: hidden;
|
|
|
+ color: var(--text-color);
|
|
|
+ background-color: #ffffff;
|
|
|
+}
|
|
|
+
|
|
|
+a {
|
|
|
+ text-decoration: none;
|
|
|
+}
|
|
|
+
|
|
|
+h1 {
|
|
|
+ font-size: 1.28rem;
|
|
|
+ line-height: 1.6rem;
|
|
|
+ font-weight: 500;
|
|
|
+}
|
|
|
+
|
|
|
+h2 {
|
|
|
+ padding: 0;
|
|
|
+ margin: 1rem 0;
|
|
|
+ font-size: 1rem;
|
|
|
+ line-height: 1.52rem;
|
|
|
+ font-weight: 500;
|
|
|
+ color: var(--color-blue);
|
|
|
+}
|
|
|
+
|
|
|
+h3 {
|
|
|
+ margin: 0.25rem 0;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 1rem;
|
|
|
+ line-height: 1.52rem;
|
|
|
+ color: var(--secondary-text-color);
|
|
|
+}
|
|
|
+
|
|
|
+h1 a {
|
|
|
+ color: var(--color-blue);
|
|
|
+}
|
|
|
+
|
|
|
+#header {
|
|
|
+ display: flex;
|
|
|
+ height: var(--header-height);
|
|
|
+ border-bottom: var(--border-style);
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+#header h1 {
|
|
|
+ padding-left: var(--panel-padding);
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ color: var(--color-blue);
|
|
|
+}
|
|
|
+#header #version {
|
|
|
+ border: 1px solid var(--color-blue);
|
|
|
+ color: var(--color-blue);
|
|
|
+ border-radius: 0.25rem;
|
|
|
+ line-height: 1.2rem;
|
|
|
+ padding: 0px 2px;
|
|
|
+ margin-left: 6px;
|
|
|
+ font-size: .9rem;
|
|
|
+}
|
|
|
+
|
|
|
+#panel {
|
|
|
+ position: fixed;
|
|
|
+ z-index: 100;
|
|
|
+ left: 0px;
|
|
|
+ width: var(--panel-width);
|
|
|
+ height: 100%;
|
|
|
+ overflow: auto;
|
|
|
+ border-right: var(--border-style);
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ transition: 0s 0s height;
|
|
|
+}
|
|
|
+
|
|
|
+ #panel #exitSearchButton {
|
|
|
+ width: 3rem;
|
|
|
+ height: 3rem;
|
|
|
+ display: none;
|
|
|
+ background-size: var(--icon-size);
|
|
|
+ background-position: 50% 50%;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-image: url(../files/ic_close_black_24dp.svg);
|
|
|
+ cursor: pointer;
|
|
|
+ margin-right: 2px;
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel.searchFocused #exitSearchButton {
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel.searchFocused #language {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel.searchFocused #filter {
|
|
|
+ background-image: none;
|
|
|
+ padding-left: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel #expandButton {
|
|
|
+ width: 3rem;
|
|
|
+ height: 3rem;
|
|
|
+ margin-right: 4px;
|
|
|
+ margin-left: 4px;
|
|
|
+ display: none;
|
|
|
+ cursor: pointer;
|
|
|
+ background-size: var(--icon-size);
|
|
|
+ background-position: 50% 50%;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-image: url(../files/ic_menu_black_24dp.svg);
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel #sections {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ z-index: 1000;
|
|
|
+ position: relative;
|
|
|
+ height: 100%;
|
|
|
+ align-items: center;
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+
|
|
|
+ #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 var(--text-color);
|
|
|
+ }
|
|
|
+ #panel #sections a {
|
|
|
+ color: var(--secondary-text-color);
|
|
|
+ }
|
|
|
+
|
|
|
+ body.home #panel #sections {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+
|
|
|
+#panel #inputWrapper {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ height: var(--header-height);
|
|
|
+ padding: 0 0 0 var(--panel-padding);
|
|
|
+ position: relative;
|
|
|
+ background: white;
|
|
|
+}
|
|
|
+#panel #inputWrapper:after {
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ border-bottom: var(--border-style);
|
|
|
+ content: "";
|
|
|
+}
|
|
|
+
|
|
|
+ #panel #filter {
|
|
|
+ flex: 1;
|
|
|
+ width: 100%;
|
|
|
+ padding: 0 2.2rem;
|
|
|
+ font-size: 1rem;
|
|
|
+ font-weight: 500;
|
|
|
+ color: var(--text-color);
|
|
|
+ outline: none;
|
|
|
+ border: 0px;
|
|
|
+ background-size: var(--icon-size);
|
|
|
+ background-image: url(../files/ic_search_black_24dp.svg);
|
|
|
+ background-position: 0 50%;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ font-family: 'Roboto Mono', monospace;
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel #language {
|
|
|
+ font-family: 'Roboto Mono', monospace;
|
|
|
+ font-size: 1rem;
|
|
|
+ line-height: 1rem;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #444;
|
|
|
+ border: 0px;
|
|
|
+ background-image: url(ic_arrow_drop_down_black_24dp.svg);
|
|
|
+ background-size: var(--icon-size);
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position: right center;
|
|
|
+ background-color: white;
|
|
|
+ padding: 4px 1.72rem;
|
|
|
+ -webkit-appearance: none;
|
|
|
+ -moz-appearance: none;
|
|
|
+ appearance: none;
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ #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;
|
|
|
+ overflow-x: hidden;
|
|
|
+ padding: 0 var(--panel-padding) 1rem var(--panel-padding);
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel #content ul {
|
|
|
+ list-style-type: none;
|
|
|
+ padding: 0px;
|
|
|
+ margin: 0px 0 1.2rem 0;
|
|
|
+ }
|
|
|
+ #panel #content ul li {
|
|
|
+ margin: 1px 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel #content h2 {
|
|
|
+ margin-top: 2rem;
|
|
|
+ border-top: var(--border-style);
|
|
|
+ padding-top: .8rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel #content h2:first-child {
|
|
|
+ margin-top: 1rem !important;
|
|
|
+ border-top: none;
|
|
|
+ padding-top: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel #content a {
|
|
|
+ color: var(--text-color);
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel #content a:hover,
|
|
|
+ #panel #content a:hover .spacer,
|
|
|
+ #panel #content .selected {
|
|
|
+ color: var(--color-blue);
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel #content .selected {
|
|
|
+ text-decoration: underline;
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel #content .hidden {
|
|
|
+ display: none !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ body.home #panel #content h2 {
|
|
|
+ margin-bottom: 2px;
|
|
|
+ padding-bottom: 0px;
|
|
|
+ margin-top: 1.2rem;
|
|
|
+ border-top: none;
|
|
|
+ padding-top: .4rem;
|
|
|
+ }
|
|
|
+
|
|
|
+.spacer {
|
|
|
+ color: var(--secondary-text-color);
|
|
|
+ margin-left: 2px;
|
|
|
+ padding-right: 2px;
|
|
|
+}
|
|
|
+
|
|
|
+#viewer,
|
|
|
+iframe {
|
|
|
+ position: absolute;
|
|
|
+ border: 0px;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ overflow: auto;
|
|
|
+}
|
|
|
+
|
|
|
+#viewer {
|
|
|
+ padding-left: var(--panel-width);
|
|
|
+}
|
|
|
+
|
|
|
+#button {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 1rem;
|
|
|
+ right: 1rem;
|
|
|
+ padding: 0.75rem;
|
|
|
+ border-radius: 2rem;
|
|
|
+ margin-bottom: 0px;
|
|
|
+ background-color: #FFF;
|
|
|
+ opacity: .9;
|
|
|
+ z-index: 999;
|
|
|
+ box-shadow: 0 0 4px rgba(0,0,0,.15);
|
|
|
+}
|
|
|
+
|
|
|
+ #button:hover {
|
|
|
+ cursor: pointer;
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ #button img {
|
|
|
+ display: block;
|
|
|
+ width: calc(1.125 * var(--icon-size));
|
|
|
+ }
|
|
|
+
|
|
|
+ #button.text {
|
|
|
+ padding-right: 1.2rem;
|
|
|
+ padding-left: 1.2rem;
|
|
|
+ color: var(--color-blue);
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+#projects {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: repeat(6, 1fr);
|
|
|
+ line-height: 0;
|
|
|
+}
|
|
|
+#projects a {
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+#projects a img {
|
|
|
+ width: 100%;
|
|
|
+ transform: scale(1.0);
|
|
|
+ transition: 0.15s transform;
|
|
|
+}
|
|
|
+#projects a:hover img {
|
|
|
+ transform: scale(1.08);
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+@media all and ( min-width: 1500px ) {
|
|
|
+ #projects {
|
|
|
+ grid-template-columns: repeat(7, 1fr);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media all and ( min-width: 1700px ) {
|
|
|
+ :root {
|
|
|
+ --panel-width: 360px;
|
|
|
+ --font-size: 18px;
|
|
|
+ --line-height: 30px;
|
|
|
+ --header-height: 60px;
|
|
|
+ }
|
|
|
+ #projects {
|
|
|
+ grid-template-columns: repeat(8, 1fr);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media all and ( min-width: 1900px ) {
|
|
|
+
|
|
|
+ #projects {
|
|
|
+ grid-template-columns: repeat(9, 1fr);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+/* @media all and ( min-width: 2400px ) {
|
|
|
+ :root {
|
|
|
+ --panel-width: 480px;
|
|
|
+ --font-size: 24px;
|
|
|
+ --line-height: 38px;
|
|
|
+ --header-height: 72px;
|
|
|
+ --max-width: 1280px;
|
|
|
+ --icon-size: 34px;
|
|
|
+ }
|
|
|
+} */
|
|
|
+
|
|
|
+
|
|
|
+@media all and ( max-width: 1300px ) {
|
|
|
+ #projects {
|
|
|
+ grid-template-columns: repeat(6, 1fr);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media all and ( max-width: 1100px ) {
|
|
|
+ #projects {
|
|
|
+ grid-template-columns: repeat(5, 1fr);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media all and ( max-width: 900px ) {
|
|
|
+ #projects {
|
|
|
+ grid-template-columns: repeat(4, 1fr);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media all and ( max-width: 700px ) {
|
|
|
+ #projects {
|
|
|
+ grid-template-columns: repeat(3, 1fr);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+/* mobile */
|
|
|
+
|
|
|
+@media all and ( max-width: 640px ) {
|
|
|
+
|
|
|
+ :root {
|
|
|
+ --header-height: 56px;
|
|
|
+ --icon-size: 24px;
|
|
|
+ }
|
|
|
+
|
|
|
+ #projects {
|
|
|
+ grid-template-columns: repeat(2, 1fr);
|
|
|
+ }
|
|
|
+
|
|
|
+ #panel #expandButton {
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+ #panel {
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ width: 100%;
|
|
|
+ right: 0;
|
|
|
+ z-index: 1000;
|
|
|
+ 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;
|
|
|
+ line-height: 2rem;
|
|
|
+ }
|
|
|
+ #panel.open #contentWrapper {
|
|
|
+ transform: translate3d(-380px, 0 ,0);
|
|
|
+ }
|
|
|
+ #viewer,
|
|
|
+ iframe {
|
|
|
+ left: 0;
|
|
|
+ top: var(--header-height);
|
|
|
+ width: 100%;
|
|
|
+ height: calc(100% - var(--header-height));
|
|
|
+ }
|
|
|
+ #viewer {
|
|
|
+ padding-left: 0;
|
|
|
+ }
|
|
|
+}
|