-
Notifications
You must be signed in to change notification settings - Fork 572
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
adds hugo teminal orange theme #277
base: master
Are you sure you want to change the base?
Changes from 1 commit
b58789e
13c8bc3
1246a95
8507a0c
3f82fb4
7963e89
4d9823c
89ed1de
35cd606
f81ca83
800d5c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@import "./variables"; | ||
|
||
.btn-primary { | ||
color: $gray-900; | ||
border-color: $gray-900; | ||
background: $orange; | ||
|
||
&:hover, &:active, &:focus { | ||
border-color: $gray-900; | ||
background: $orange; | ||
} | ||
|
||
&:disabled { | ||
color: $gray-900; | ||
background: $orange-200; | ||
} | ||
} | ||
|
||
button[role=tab] { | ||
color: $gray-600; | ||
.selected { | ||
color: $text-gray-dark; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@import "./variables"; | ||
|
||
.bg-gray-light, | ||
.bg-white { | ||
background-color: $bg-gray !important; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@import "./variables"; | ||
|
||
.form-control, .form-select { | ||
color: $text-gray-dark; | ||
background-color: $bg-white !important; | ||
border-radius: 3px; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@import "./variables"; | ||
|
||
.form-select { | ||
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUAgMAAAD5DFXkAAAACVBMVEXMzMzMzMzMzMzgWE1NAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfiCwMFBDi4mDGnAAAAR0lEQVQI123JIRUAIQAE0eUEgghEIAV5SEEEIiAQMCnZh74RX+xKr6+bNE3ZBjxBV4KpAlt/NTjKsBRhKED1ePzkZeIwoeoCtokT7bjAVYwAAAAASUVORK5CYII=) no-repeat right 8px center; | ||
background-size: 8px 10px; | ||
} | ||
|
||
.markdown-body kbd { | ||
background-color: transparent; | ||
color: $text-gray-dark; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@import "./variables"; | ||
|
||
*:focus { | ||
outline: none !important; | ||
box-shadow: 0 0 0.2em 0.1em opacify($highlight, 0.1); | ||
border-radius: 1px; | ||
} | ||
|
||
.tabnav-tab, | ||
.form-control, | ||
.form-select { | ||
&.focus, | ||
&:focus { | ||
border-color: transparent; | ||
box-shadow: 0 0 0 0.11em opacify($highlight, 0.1) !important; | ||
outline-color: transparent; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import "./variables"; | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After running, I think this setting has no effect. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
border-color: $line !important; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@import "./variables"; | ||
@import "../../index"; | ||
@import "./syntax"; | ||
@import "./button.scss"; | ||
@import "./glow.scss"; | ||
@import "./heading.scss"; | ||
@import "./comment.scss"; | ||
@import "./selection.scss"; | ||
@import "./placeholder.scss"; | ||
@import "./combobox.scss"; | ||
@import "./code.scss"; | ||
|
||
body { | ||
background-color: $bg-page; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this rule necessary? Thinking setting the $bg-page variable in variables.scss should have the same effect. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jdanyow In my attempt to make it as compliant with other themes as possible, I copied There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. body {
background-color: $bg-page;
}
iframe {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
} should be deleted from this file |
||
|
||
iframe { | ||
-webkit-touch-callout: none; | ||
-webkit-user-select: none; | ||
-khtml-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is this rule for? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not know, I copied it from |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@import "./variables"; | ||
|
||
@mixin placeholder { | ||
::placeholder { @content; } | ||
::-webkit-input-placeholder { @content; } | ||
::-moz-placeholder { @content; } | ||
:-moz-placeholder { @content; } | ||
:-ms-input-placeholder { @content; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you can remove the prefixed versions of |
||
} | ||
|
||
@include placeholder { | ||
color: $text-gray-dark; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@import "./variables"; | ||
|
||
@mixin selection($element) { | ||
#{$element}::-moz-selection { @content; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. autoprefixer will add the prefixed version of |
||
#{$element}::selection { @content; } | ||
} | ||
|
||
@include selection("") { | ||
background: $highlight; | ||
color: $text-gray-dark !important; | ||
} | ||
|
||
@include selection("img") { | ||
background: transparentize($highlight, 0.25); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "github-syntax-dark/lib/github-dark"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@import "./variables"; | ||
@import "../../utterances"; | ||
@import "./syntax"; | ||
@import "./button.scss"; | ||
@import "./glow.scss"; | ||
@import "./heading.scss"; | ||
@import "./comment.scss"; | ||
@import "./selection.scss"; | ||
@import "./placeholder.scss"; | ||
@import "./combobox.scss"; | ||
@import "./code.scss"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
$orange: rgb(255,168,106); | ||
$orange-200: #ffd1ac; | ||
$gray-000: #181818; | ||
$gray-100: #2B303B;/*comment header bg*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There should be a space between the comment character and the comment content, for example:
|
||
$gray-200: #24292e; | ||
$gray-300: #4e4c4b; | ||
$gray-400: #586069; | ||
$gray-600: #bbbbbb; | ||
$gray-700: #959da5; | ||
$gray-900: #24292e; | ||
$bg-white: #222129; /*commnet bg*/ | ||
$bg-gray: $gray-100; /*source code bg*/ | ||
$bg-gray-light: darken($bg-gray, 5%); | ||
$border-gray: $gray-300; /*comment*/ | ||
$border-gray-dark: $border-gray; | ||
$black-fade-15: rgba(#fff, 0.15); | ||
$black-fade-30: rgba(#fff, 0.3); | ||
$text-gray: #c9c9c9; | ||
$text-gray-dark: #f7f7f7; | ||
$text-blue: $orange; | ||
$bg-blue-light: #212021; | ||
$bg-page: #222129; | ||
|
||
$highlight: $orange; | ||
$line: #6f6e6e; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you move this directly beneath the github-dark-orange theme? Easier toggle between the two with the keyboard for comparison purposes.