Skip to content

Redesign website designer. #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 54 additions & 2 deletions styles/css3-github-ribbon.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,54 @@
body{background-color:#fff}
.github-ribbon{background-color:#121621;top:3.2em;right:-3.7em;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888;-moz-box-shadow:0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888;box-shadow:0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888;color:rgba(255,255,255,0.90)!important;display:block;padding:.6em 3.5em;position:absolute;font:bold .82em sans-serif;text-align:center;text-decoration:none;text-shadow:1px -1px 8px rgba(0,0,0,0.60);-webkit-user-select:none;-moz-user-select:none;user-select:none}
:root {
--background-color-light: #ffffff;
--background-color-dark: #1a202c;
--text-color-light: #1e293b;
--text-color-dark: #ffffff;
}


body {
background-color: var(--background-color-light);
font-family: 'Inter', sans-serif;
margin: 0;
}

.github-ribbon {
background-color: #121621;
top: 3.2em;
right: -1em;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
-webkit-box-shadow: 0 0 0 1px #1d212e inset, 0 0 2px 1px #fff inset, 0 0 1em #888;
-moz-box-shadow: 0 0 0 1px #1d212e inset, 0 0 2px 1px #fff inset, 0 0 1em #888;
box-shadow: 0 0 0 1px #1d212e inset, 0 0 2px 1px #fff inset, 0 0 1em #888;
color: rgba(255, 255, 255, 0.90)!important;
display: block;
padding: 10px 30px;
position: absolute;
font-weight: bold;
font-size: 0.82em;
text-align: center;
text-decoration: none;
text-shadow: 1px -1px 8px rgba(0, 0, 0, 0.60);
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
z-index: 9999;
}

dd {
margin: 0;
}

pre {
margin: 0;
}


@media (prefers-color-scheme: dark) {
body {
background-color: var(--background-color-dark);
}
}

133 changes: 120 additions & 13 deletions styles/hljs-tomorrow.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/*
Copyright 2022 the JSDoc Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -17,25 +14,29 @@
/* Tomorrow theme for Highlight.js */
/* Based on https://github.com/chriskempson/tomorrow-theme */



:root {
--text-color: #3d3d3c;
--tomorrow-blue: #4271ae;
--tomorrow-gray: #8e908c;
--tomorrow-green: #718c00;
--tomorrow-orange: #f5871f;
--tomorrow-purple: #8959a8;
--tomorrow-red: #c82829;
--tomorrow-yellow: #c99e00;
--text-color-light: #1e293b;
--text-color-dark: #ffffff;
--tomorrow-blue: #6366f1;
--tomorrow-gray: #6b7280;
--tomorrow-green: #48bb78;
--tomorrow-orange: #f59e0b;
--tomorrow-purple: #9f7aea;
--tomorrow-red: #ef4444;
--tomorrow-yellow: #f9ca24;
}

.hljs,
.no-hljs {
color: var(--text-color);
color: var(--text-color-light);
font-family: 'Inter', sans-serif;
}

.hljs-code,
.hljs-formula {
color: var(--text-color);
color: var(--text-color-light);
}

.hljs-comment,
Expand Down Expand Up @@ -110,3 +111,109 @@
.hljs-strong {
font-weight: bold;
}


@media (prefers-color-scheme: dark) {
:root {
--text-color-light: #ffffff;
--background-color-light: #1e293b;
}

body {
background-color: var(--background-color-light);
}

.github-ribbon {
background-color: #1d212e;
}

pre {
background-color: #1d212e;
}
.hljs,
.no-hljs {
color: var(--text-color-dark);
font-family: 'Inter', sans-serif;
}

.hljs-code,
.hljs-formula {
color: var(--text-color-dark);
}

.hljs-comment,
.hljs-quote {
color: var(--tomorrow-gray);
}

.hljs-deletion,
.hljs-meta .hljs-keyword,
.hljs-name,
.hljs-property,
.hljs-regexp,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id,
.hljs-selector-pseudo,
.hljs-substr,
.hljs-tag,
.hljs-template-tag,
.hljs-template-variable,
.hljs-variable,
.hljs-variable.language_ {
color: var(--tomorrow-red);
}

.hljs-built_in,
.hljs-char.escape_,
.hljs-link,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-params,
.hljs-type {
color: var(--tomorrow-orange);
}

.hljs-attribute {
color: var(--tomorrow-yellow);
}

.hljs-addition,
.hljs-attr,
.hljs-bullet,
.hljs-meta .hljs-string,
.hljs-string,
.hljs-subst,
.hljs-symbol,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
color: var(--tomorrow-green);
}

.hljs-punctuation,
.hljs-section,
.hljs-title {
color: var(--tomorrow-blue);
}

.hljs-keyword,
.hljs-meta.hljs-keyword,
.hljs-selector-tag,
.hljs-title.class_ {
color: var(--tomorrow-purple);
}

.hljs-emphasis {
font-style: italic;
}

.hljs-doctag,
.hljs-strong {
font-weight: bold;
}


}

Loading