123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- @import url("../fonts/poppins/poppins.css");
- @import url("../fonts/opensans/opensans.css");
- @import url("reset.css");
- @import url("widgets/buttons.css");
- @import url("widgets/sections.css");
- @media(prefers-color-scheme:dark) {
- select:not([multiple]) {
- background: var(--gradient),url("../images/select_drop_dark.png") no-repeat center right 5px !important;
- background-size: cover,16px !important;
- }
- }
- @media(prefers-color-scheme:light) {
- select:not([multiple]) {
- background: var(--gradient),url("../images/select_drop_light.png") no-repeat center right 5px !important;
- background-size: cover,16px !important;
- background-blend-mode: saturation;
- }
- }
- .icon {
- align-self: center;
- fill: var(--foreground);
- }
- .active {
- font-size: 1.1em;
- font-family: 'Poppins', sans-serif;
- font-weight: 600;
- }
- .anchor-hidden {
- width: 1px;
- height: 1px;
- overflow: hidden;
- }
- .accessibility-menu {
- display: block;
- position: absolute;
- z-index: 999;
- top: -90%;
- left: -90%;
- width: 30%;
- height: min-content;
- padding: var(--smaller);
- border-radius: var(--smaller);
- background-color: var(--background-hard) !important;
- border: 2px solid var(--border);
- }
- .accessibility-menu ul {
- list-style-type: disc;
- margin-left: var(--small);
- }
- .accessibility-menu:focus-within:not(:active) {
- top: var(--smaller);
- left: var(--smaller);
- }
- html {
- scroll-margin-top: var(--big);
- }
- .page-header {
- z-index: 1;
- font-family: 'Poppins',sans-serif;
- font-size: var(--medium);
- height: var(--big);
- display: flex;
- justify-content: center;
- position: fixed;
- top: 0;
- align-self: center;
- align-items: center;
- padding: var(--smaller);
- background: var(--gradient) !important;
- box-shadow: var(--shadow);
- }
- .header-instance {
- display: flex;
- position: absolute;
- text-align: center;
- align-items: center;
- align-self: center;
- margin-left: auto;
- }
- .header-instance > * {
- margin: unset;
- }
- .header-extra-actions {
- justify-self: flex-end;
- margin-left: auto;
- }
- .header-extra-actions[open] > *:not(summary) {
- z-index: 2;
- position: absolute;
- top: 100%;
- right: 0;
- width: 16.5vw;
- font-size: var(--default);
- border-radius: 0 0 var(--smaller) var(--smaller);
- padding: var(--smaller);
- background: var(--background-hard);
- box-shadow: var(--shadow);
- }
- .header-panel {
- display: flex;
- flex-direction: column;
- font-family: 'Open Sans',sans-serif;
- font-size: var(--default);
- position: fixed;
- top: 0;
- margin-top: var(--big);
- height: calc(100% - var(--big));
- padding: var(--smaller);
- overflow-y: auto;
- }
- .panel-content {
- display: flex;
- flex-direction: column;
- }
- .page-content-wrapper {
- position: relative;
- top: var(--big);
- margin-left: auto;
- margin-right: auto;
- justify-content: center;
- padding: var(--smaller) var(--smaller) 0;
- }
- .page-content {
- display: flex;
- flex-direction: column;
- width: 100%;
- }
- .markdown-blocks {
- border-radius: 0 0 var(--smaller) var(--smaller);
- padding: var(--smaller);
- background-color: var(--background-card) !important;
- }
- .markdown-blocks ul {
- margin-left: 1em;
- list-style: disc;
- }
- .markdown-blocks ul li {
- margin-bottom: 0.2em;
- }
- .doc-navigation {
- border-radius: var(--smaller) var(--smaller) 0 0;
- border-bottom: 0;
- padding: var(--smaller);
- background-color: var(--background-card) !important;
- }
- .doc-navigation ul {
- display: flex;
- justify-content: space-evenly;
- font-size: var(--medium);
- }
- #replyform {
- padding: var(--smaller);
- margin-top: var(--smaller);
- border-radius: var(--smaller);
- display: flex;
- flex-direction: column;
- font-size: var(--default);
- background-color: var(--background-card) !important;
- }
- #replyform textarea {
- width: 100%;
- resize: vertical;
- margin-top: var(--smaller);
- padding: var(--smaller);
- }
- @media only screen and (max-width:1280px) {
- .page-header {
- width: 100%;
- }
- .page-content-wrapper {
- width: 100%;
- }
- .page-content {
- max-width: 100%;
- }
- .header-extra-actions[open] > *:not(summary) {
- width: 100%;
- }
- #panel-left-toggle:not(:checked)+.header-panel,
- #panel-right-toggle:not(:checked)+.header-panel {
- display: none;
- }
- #panel-left-toggle:checked+.header-panel,
- #panel-right-toggle:checked+.header-panel,
- a[id|="anchor"]:target ~ .panel-content {
- display: flex;
- width: 100%;
- background-size: 100% 100%;
- z-index: auto;
- background-color: var(--background-hard) !important;
- }
- }
- /* > 720p */
- @media only screen and (min-width:1281px) {
- /*
- * Using the Van de Graaf Canon and Tschichold’s recommended 2:3 page-size ratio
- * Except we use the whole page
- *
- * > .page-content-wrapper
- * 100% * 2/3 = 66%
- *
- * > .header-panel
- * 100 - 66% = 34%
- * 34% / 2 = 17%
- */
- .page-header {
- width: 100%;
- }
- .header-panel {
- width: 17vw;
- }
- .page-content-wrapper {
- width: 66vw;
- }
- a[id|="anchor"]:target+.accessibility-target {
- animation-name: highlight;
- animation-duration: 600ms;
- animation-timing-function: ease-in-out;
- }
- }
- /* > 1080p */
- @media only screen and (min-width:1921px) {
- /*
- * Using the Van de Graaf Canon and Tschichold’s recommended 2:3 page-size ratio
- *
- * 100% * 2/3 = 66%
- *
- * > .page-content-wrapper
- * 66% * 2/3 = 44%
- *
- * > .header-panel
- * 66% - 44% = 22%
- * 22% / 2 = 11%
- */
- .page-header {
- width: 66vw;
- }
- .header-panel {
- width: 11vw;
- }
- .page-content-wrapper {
- width: 44vw;
- }
- }
- @keyframes fadeIn {
- 0% {
- opacity: 0;
- transform: translateY(-10px);
- }
- 100% {
- opacity: unset;
- transform: none;
- }
- }
- @keyframes fadeOut {
- 100% {
- opacity: 0;
- transform: translateY(-10px);
- }
- 0% {
- opacity: unset;
- transform: none;
- }
- }
- @media (prefers-color-scheme: dark) {
- @keyframes highlight {
- 0% {
- box-shadow: initial;
- border-radius: var(--smaller);
- }
- 50% {
- border-radius: var(--smaller);
- box-shadow: inset 0 20px 40px #FFF;
- transition: box-shadow 0.3s ease-in-out;
- z-index: 666;
- }
- 100% {
- box-shadow: initial;
- border-radius: var(--smaller);
- }
- }
- }
- @media (prefers-color-scheme: light) {
- @keyframes highlight {
- 0% {
- box-shadow: initial;
- border-radius: var(--smaller);
- }
- 50% {
- border-radius: var(--smaller);
- box-shadow: inset 0 20px 40px #000;
- transition: box-shadow 0.3s ease-in-out;
- }
- 100% {
- box-shadow: initial;
- border-radius: var(--smaller);
- }
- }
- }
|