fix: styles now support monaco editor

pull/5370/head
Andrew Miracle 2 years ago
parent e3e69471a9
commit 9ff7747309
  1. 200
      apps/remix-ide/src/assets/css/themes/remix-hacker_owl.css

@ -1,50 +1,58 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=JetBrains+Mono:ital,wght@0,400;0,700;1,400&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Saira:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400&display=swap');
:root { :root {
--blue: #007aa6; --blue: #2cc1f7;
--indigo: #6610f2; --indigo: #6610f2;
--purple: #6f42c1; --purple: #6f42c1;
--pink: #e83e8c; --pink: #e83e8c;
--red: #b84040; --red: #b84040;
--orange: #c97539; --orange: #E5D17D;
--yellow: #ffc107; --yellow: #ffc107;
--green: #1b8649; --green: #C4E07F;
--teal: #20c997; --teal: #20c997;
--cyan: #355f7d; --cyan: #355f7d;
--white: #fff; --white: #fff;
--gray: #868e96; --gray: #8B99A6;
--gray-dark: #343a40; --gray-dark: #343a40;
--primary: #007aa6; --primary: #007aa6;
--secondary: #50667b; --secondary: #0E2A3E;
--success: #1b8649; --success: #C4E07F;
--info: #086CB5; --info: #086CB5;
--warning: #c97539; --warning: #c97539;
--danger: #b84040; --danger: #b84040;
--light: #011C32; --light: #011C32;
--dark: #051624; --dark: #fff4fd; // light purple
--custom-select: #011627;
--text-background: #011626;
--breakpoint-xs: 0; --breakpoint-xs: 0;
--breakpoint-sm: 576px; --breakpoint-sm: 576px;
--breakpoint-md: 768px; --breakpoint-md: 768px;
--breakpoint-lg: 992px; --breakpoint-lg: 992px;
--breakpoint-xl: 1200px; --breakpoint-xl: 1200px;
--theme-divider-color: #04101ad4; --theme-divider-color: #04101ad4;
--theme-foreground-gray: #4b6479; --theme-foreground-gray: #4b6479;
--theme-foreground-comment: #637777; --theme-foreground-comment: #637777;
--theme-foreground-alpha-1: #ffffffce; --theme-foreground-alpha-1: #ffffffce;
--theme-background-input: #234d708c; --theme-background-input: #0a1b28a3;
--theme-background: #011627; --theme-background: #011627;
--theme-background-panels: #011628; --theme-background-panels: #011628;
--theme-bg-btn-secondary: #011C32; --theme-bg-btn-secondary: #011C32;
--theme-bg-btn-dark--hover: #033863; --theme-bg-btn-dark--hover: #033863;
--theme-border-tab: 1px solid #7fdbca52; --theme-border-tab: 1px solid #274052;
--theme-border-default: 1px solid #07121ca6;
--theme-form-placeholder: #dfe1ea; // replace var(--theme-form-placeholder)
--theme-ace-identifier: #ffcb8bcc; --theme-ace-identifier: #ffcb8bcc;
--theme-ace-operator: #ffcb8b; --theme-ace-operator: #ffcb8b;
--theme-ace-symbols: #7fdbca; --theme-ace-symbols: #7fdbca;
--theme-ace-keyword: #c792ea; --theme-ace-keyword: #c792ea;
--font-family-sans-serif: "Inter", -apple-system, BlinkMacSystemFont,
--font-family-sans-serif: "Saira", -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-family-monospace: "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono", --font-family-monospace: "Jetbrains Mono", Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace; "Courier New", monospace;
} }
*, *,
@ -72,7 +80,7 @@ section {
} }
body { body {
margin: 0; margin: 0;
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", font-family: "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 1rem; font-size: 1rem;
@ -81,7 +89,7 @@ body {
font-kerning: normal; font-kerning: normal;
font-weight: 400; font-weight: 400;
line-height: 1.5; line-height: 1.5;
color: #ccd9e6; color: #87A2B7; // #ccd9e6
text-align: left; text-align: left;
background-color: var(--theme-background-panels); background-color: var(--theme-background-panels);
} }
@ -96,6 +104,7 @@ body {
[tabindex="-1"]:focus { [tabindex="-1"]:focus {
outline: 0 !important; outline: 0 !important;
} }
hr { hr {
box-sizing: content-box; box-sizing: content-box;
height: 0; height: 0;
@ -170,7 +179,7 @@ sup {
top: -0.5em; top: -0.5em;
} }
a { a {
color: #a2a3bd; color: #d5d5d5;
text-decoration: underline; text-decoration: underline;
background-color: transparent; background-color: transparent;
} }
@ -220,7 +229,7 @@ table {
caption { caption {
padding-top: 0.75rem; padding-top: 0.75rem;
padding-bottom: 0.75rem; padding-bottom: 0.75rem;
color: #868e96; color: var(--theme-form-placeholder);
text-align: left; text-align: left;
caption-side: bottom; caption-side: bottom;
} }
@ -274,7 +283,7 @@ button {
[type="reset"]:not(:disabled), [type="reset"]:not(:disabled),
[type="submit"]:not(:disabled), [type="submit"]:not(:disabled),
button:not(:disabled) { button:not(:disabled) {
cursor: pointer; cursor: posaira;
} }
[type="button"]::-moz-focus-inner, [type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner,
@ -338,7 +347,7 @@ output {
} }
summary { summary {
display: list-item; display: list-item;
cursor: pointer; cursor: posaira;
} }
template { template {
display: none; display: none;
@ -453,7 +462,7 @@ mark {
.blockquote-footer { .blockquote-footer {
display: block; display: block;
font-size: 80%; font-size: 80%;
color: #868e96; color: var(--theme-form-placeholder);
} }
.blockquote-footer::before { .blockquote-footer::before {
content: "\2014\00A0"; content: "\2014\00A0";
@ -479,7 +488,7 @@ mark {
} }
.figure-caption { .figure-caption {
font-size: 90%; font-size: 90%;
color: #868e96; color: var(--theme-form-placeholder);
} }
code { code {
font-size: 90%; font-size: 90%;
@ -1659,7 +1668,7 @@ pre code {
0 0 0 3px rgba(0, 122, 166, 0.25); 0 0 0 3px rgba(0, 122, 166, 0.25);
} }
.form-control::placeholder { .form-control::placeholder {
color: #868e96; color: var(--theme-form-placeholder);
opacity: 1; opacity: 1;
} }
.form-control:disabled, .form-control:disabled,
@ -1762,13 +1771,13 @@ textarea.form-control {
margin-left: -1.25rem; margin-left: -1.25rem;
} }
.form-check-input:disabled ~ .form-check-label { .form-check-input:disabled ~ .form-check-label {
color: #868e96; color: var(--theme-form-placeholder);
} }
.form-check-label { .form-check-label {
margin-bottom: 0; margin-bottom: 0;
font-size: 13px; font-size: 13px;
line-height: 18px; line-height: 18px;
color: #A2A3BD; color: #D5D5D5;
text-transform: initial; text-transform: initial;
display: initial; display: initial;
} }
@ -1789,7 +1798,7 @@ textarea.form-control {
width: 100%; width: 100%;
margin-top: 0.25rem; margin-top: 0.25rem;
font-size: 80%; font-size: 80%;
color: #1b8649; color: #C4E07F;
} }
.valid-tooltip { .valid-tooltip {
position: absolute; position: absolute;
@ -2141,7 +2150,7 @@ textarea.form-control.is-invalid {
} }
a.btn.disabled, a.btn.disabled,
fieldset:disabled a.btn { fieldset:disabled a.btn {
pointer-events: none; posaira-events: none;
} }
.btn-primary { .btn-primary {
color: #fff; color: #fff;
@ -2641,7 +2650,7 @@ fieldset:disabled a.btn {
} }
.btn-link { .btn-link {
font-weight: 400; font-weight: 400;
color: #a2a3bd; color: #d5d5d5;
text-decoration: underline; text-decoration: underline;
} }
.btn-link:hover { .btn-link:hover {
@ -2655,8 +2664,8 @@ fieldset:disabled a.btn {
} }
.btn-link.disabled, .btn-link.disabled,
.btn-link:disabled { .btn-link:disabled {
color: #868e96; color: var(--theme-form-placeholder);
pointer-events: none; posaira-events: none;
} }
.btn-group-lg > .btn, .btn-group-lg > .btn,
.btn-lg { .btn-lg {
@ -2911,8 +2920,8 @@ input[type="submit"].btn-block {
} }
.dropdown-item.disabled, .dropdown-item.disabled,
.dropdown-item:disabled { .dropdown-item:disabled {
color: #868e96; color: var(--theme-form-placeholder);
pointer-events: none; posaira-events: none;
background-color: transparent; background-color: transparent;
} }
.dropdown-menu.show { .dropdown-menu.show {
@ -2923,7 +2932,7 @@ input[type="submit"].btn-block {
padding: 0.5rem 1.5rem; padding: 0.5rem 1.5rem;
margin-bottom: 0; margin-bottom: 0;
font-size: 0.875rem; font-size: 0.875rem;
color: #868e96; color: var(--theme-form-placeholder);
white-space: nowrap; white-space: nowrap;
} }
.dropdown-item-text { .dropdown-item-text {
@ -3031,7 +3040,7 @@ input[type="submit"].btn-block {
.btn-group-toggle > .btn-group > .btn input[type="radio"] { .btn-group-toggle > .btn-group > .btn input[type="radio"] {
position: absolute; position: absolute;
clip: rect(0, 0, 0, 0); clip: rect(0, 0, 0, 0);
pointer-events: none; posaira-events: none;
} }
.input-group { .input-group {
position: relative; position: relative;
@ -3252,7 +3261,7 @@ input[type="submit"].btn-block {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
pointer-events: none; posaira-events: none;
content: ""; content: "";
background-color: #2e3145; background-color: #2e3145;
border: #51536b solid 1px; border: #51536b solid 1px;
@ -3315,7 +3324,7 @@ input[type="submit"].btn-block {
.custom-switch .custom-control-label::before { .custom-switch .custom-control-label::before {
left: -2.25rem; left: -2.25rem;
width: 1.75rem; width: 1.75rem;
pointer-events: all; posaira-events: all;
border-radius: 0.5rem; border-radius: 0.5rem;
} }
.custom-switch .custom-control-label::after { .custom-switch .custom-control-label::after {
@ -3508,7 +3517,7 @@ input[type="submit"].btn-block {
width: 100%; width: 100%;
height: 0.5rem; height: 0.5rem;
color: transparent; color: transparent;
cursor: pointer; cursor: posaira;
background-color: #dee2e6; background-color: #dee2e6;
border-color: transparent; border-color: transparent;
border-radius: 1rem; border-radius: 1rem;
@ -3535,7 +3544,7 @@ input[type="submit"].btn-block {
width: 100%; width: 100%;
height: 0.5rem; height: 0.5rem;
color: transparent; color: transparent;
cursor: pointer; cursor: posaira;
background-color: #dee2e6; background-color: #dee2e6;
border-color: transparent; border-color: transparent;
border-radius: 1rem; border-radius: 1rem;
@ -3565,7 +3574,7 @@ input[type="submit"].btn-block {
width: 100%; width: 100%;
height: 0.5rem; height: 0.5rem;
color: transparent; color: transparent;
cursor: pointer; cursor: posaira;
background-color: transparent; background-color: transparent;
border-color: transparent; border-color: transparent;
border-width: 0.5rem; border-width: 0.5rem;
@ -3623,8 +3632,8 @@ input[type="submit"].btn-block {
text-decoration: none; text-decoration: none;
} }
.nav-link.disabled { .nav-link.disabled {
color: #868e96; color: var(--theme-form-placeholder);
pointer-events: none; posaira-events: none;
cursor: default; cursor: default;
} }
@ -3641,7 +3650,7 @@ input[type="submit"].btn-block {
border-color: var(--theme-divider-color); border-color: var(--theme-divider-color);
} }
.nav-tabs .nav-link.disabled { .nav-tabs .nav-link.disabled {
color: #868e96; color: var(--theme-form-placeholder);
background-color: transparent; background-color: transparent;
border-color: transparent; border-color: transparent;
} }
@ -4213,7 +4222,7 @@ input[type="submit"].btn-block {
.breadcrumb-item + .breadcrumb-item::before { .breadcrumb-item + .breadcrumb-item::before {
display: inline-block; display: inline-block;
padding-right: 0.5rem; padding-right: 0.5rem;
color: #868e96; color: var(--theme-form-placeholder);
content: "/"; content: "/";
} }
.breadcrumb-item + .breadcrumb-item:hover::before { .breadcrumb-item + .breadcrumb-item:hover::before {
@ -4270,7 +4279,7 @@ input[type="submit"].btn-block {
} }
.page-item.disabled .page-link { .page-item.disabled .page-link {
color: #989ca4; color: #989ca4;
pointer-events: none; posaira-events: none;
cursor: auto; cursor: auto;
background-color: #323949; background-color: #323949;
border-color: #ddd; border-color: #ddd;
@ -4674,8 +4683,8 @@ a.badge-dark:focus {
} }
.list-group-item.disabled, .list-group-item.disabled,
.list-group-item:disabled { .list-group-item:disabled {
color: #868e96; color: var(--theme-form-placeholder);
pointer-events: none; posaira-events: none;
background-color: var(--theme-background); background-color: var(--theme-background);
} }
.list-group-item.active { .list-group-item.active {
@ -4933,7 +4942,7 @@ button.close {
appearance: none; appearance: none;
} }
a.close.disabled { a.close.disabled {
pointer-events: none; posaira-events: none;
} }
.toast { .toast {
max-width: 350px; max-width: 350px;
@ -4964,7 +4973,7 @@ a.close.disabled {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0.25rem 0.75rem; padding: 0.25rem 0.75rem;
color: #868e96; color: var(--theme-form-placeholder);
background-color: rgba(255, 255, 255, 0.85); background-color: rgba(255, 255, 255, 0.85);
background-clip: padding-box; background-clip: padding-box;
border-bottom: 1px solid rgba(0, 0, 0, 0.05); border-bottom: 1px solid rgba(0, 0, 0, 0.05);
@ -4994,7 +5003,7 @@ a.close.disabled {
position: relative; position: relative;
width: auto; width: auto;
margin: 10px; margin: 10px;
pointer-events: none; posaira-events: none;
} }
.modal.fade .modal-dialog { .modal.fade .modal-dialog {
transition: transform 0.3s ease-out; transition: transform 0.3s ease-out;
@ -5050,7 +5059,7 @@ a.close.disabled {
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
color: #fff; color: #fff;
pointer-events: auto; posaira-events: auto;
background-color: var(--theme-background-panels); background-color: var(--theme-background-panels);
background-clip: padding-box; background-clip: padding-box;
border: 1px solid #2c3244; border: 1px solid #2c3244;
@ -5153,7 +5162,7 @@ a.close.disabled {
z-index: 1070; z-index: 1070;
display: block; display: block;
margin: 0; margin: 0;
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", font-family: "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-style: normal; font-style: normal;
@ -5263,7 +5272,7 @@ a.close.disabled {
z-index: 1060; z-index: 1060;
display: block; display: block;
max-width: 276px; max-width: 276px;
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", font-family: "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-style: normal; font-style: normal;
@ -5418,7 +5427,7 @@ a.close.disabled {
.carousel { .carousel {
position: relative; position: relative;
} }
.carousel.pointer-event { .carousel.posaira-event {
touch-action: pan-y; touch-action: pan-y;
} }
.carousel-inner { .carousel-inner {
@ -5551,7 +5560,7 @@ a.close.disabled {
margin-right: 3px; margin-right: 3px;
margin-left: 3px; margin-left: 3px;
text-indent: -999px; text-indent: -999px;
cursor: pointer; cursor: posaira;
background-color: #fff; background-color: #fff;
background-clip: padding-box; background-clip: padding-box;
border-top: 10px solid transparent; border-top: 10px solid transparent;
@ -5693,7 +5702,7 @@ button.bg-danger:hover {
background-color: #923333 !important; background-color: #923333 !important;
} }
.bg-light { .bg-light {
background-color: var(--light) !important; background-color: var(--theme-background) !important;
} }
a.bg-light:focus, a.bg-light:focus,
a.bg-light:hover, a.bg-light:hover,
@ -6719,7 +6728,7 @@ button.bg-dark:hover {
bottom: 0; bottom: 0;
left: 0; left: 0;
z-index: 1; z-index: 1;
pointer-events: auto; posaira-events: auto;
content: ""; content: "";
background-color: rgba(0, 0, 0, 0); background-color: rgba(0, 0, 0, 0);
} }
@ -8467,6 +8476,7 @@ button.bg-dark:hover {
} }
.text-center { .text-center {
text-align: center !important; text-align: center !important;
font-family: var(--font-family-sans-serif);
} }
@media (min-width: 576px) { @media (min-width: 576px) {
.text-sm-left { .text-sm-left {
@ -8599,10 +8609,10 @@ a.text-dark:hover {
color: #6f7087 !important; color: #6f7087 !important;
} }
.text-body { .text-body {
color: #A2A3BD !important; color: #D5D5D5 !important;
} }
.text-muted { .text-muted {
color: #868e96 !important; color: var(--theme-form-placeholder) !important;
} }
.text-black-50 { .text-black-50 {
color: rgba(0, 0, 0, 0.5) !important; color: rgba(0, 0, 0, 0.5) !important;
@ -8720,9 +8730,12 @@ a.text-dark:hover {
border-bottom: 1px solid #2c3244; border-bottom: 1px solid #2c3244;
} }
#icon-panel {
background-color: var(--light);
}
/* Plugins manager */ /* Plugins manager */
.plugin-manager { .plugin-manager {
background: var(--light); background: var(--text-background);
} }
.plugins-header { .plugins-header {
background-color: var(--theme-background-panels) !important; background-color: var(--theme-background-panels) !important;
@ -8768,11 +8781,11 @@ a.text-dark:hover {
text-transform: uppercase; text-transform: uppercase;
} }
.plugin-text { .plugin-text {
color: #A2A3BD !important; color: #D5D5D5 !important;
} }
.plugin-version { .plugin-version {
color: #A2A3BD; color: #D5D5D5;
border: 1px solid #A2A3BD; border: 1px solid #D5D5D5;
} }
.settings-button { .settings-button {
height: 32px; height: 32px;
@ -8823,7 +8836,7 @@ a.text-dark:hover {
} }
/* Theme Palette, Typography custom */ /* Theme Palette, Typography custom */
#journal, .ace-content, .ace_editor { #journal, .ace-content, .monaco-editor {
font-family: "JetBrains Mono", monospace!important; font-family: "JetBrains Mono", monospace!important;
} }
@ -8837,7 +8850,7 @@ a.text-dark:hover {
margin-bottom: -1px; margin-bottom: -1px;
} }
.mainview--tabs-proxy { .mainview--tabs-proxy {
background-color: var(--light)!important; background-color: var(--text-background)!important;
border-bottom: 1.2px solid var(--theme-divider-color); border-bottom: 1.2px solid var(--theme-divider-color);
} }
@ -8870,46 +8883,63 @@ remix-tab .fak {
line-height: 1.2!important; line-height: 1.2!important;
} }
.ace-chaos .ace_keyword { div[data-id="remixIdeSidePanel"] {
color: var(--theme-ace-keyword)!important; margin-right: -1px
} }
.ace_storage .ace_type { /* Monaco Editor */
color: var(--theme-ace-keyword)!important; .view-lines, .monaco-mouse-cursor-text {
font-family: "Jetbrains Mono" !important;
} }
.ace_identifier { .monaco-editor .scroll-decoration {
color: var(--theme-ace-identifier)!important; box-shadow: #03030fbd 0 6px 6px -6px inset!important;
} }
.ace_paren > .ace_lparen, .ace_paren .ace_rparen { /* Remix utils */
color: var(--theme-ace-symbols)!important; .remix_ui_terminal_welcome {
font-family: "Saira"!important;
margin-left: -.25rem;
} }
.ace_editor.ace_autocomplete .ace_completion-highlight { .remix_ui_terminal_journal, .remix_ui_terminal_autoCompleteItem, .remix_ui_terminal_block ul {
color: var(--white)!important; font-family: "Saira" !important;
} }
.ace_ { .remix_ui_terminal_block {
color: var(--theme-foreground-alpha-1)!important; font-family: "Jetbrains Mono"!important;
} }
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { .remixui_icon img {
background-color: var(--theme-background-input)!important; filter: invert(0.75)!important;
} }
.ace-chaos .ace_marker-layer .ace_active-line { .custom-dropdown-items {
background-color: var(--theme-divider-color)!important; background: #011627!important; // override --custom-select
} }
.ace-chaos .ace_gutter-active-line { .remix-ui-tabs {
background-color: var(--theme-divider-color)!important; border-bottom: var(--theme-border-default)!important;
} }
.ace_rightAlignedText { /* use to create light padding top in the editor */
color: var(--theme-ace-symbols)!important; .editor-wrap {
/* padding-top: 1rem; */
background-color: var(--text-background);
} }
div[data-id="remixIdeSidePanel"] { .monaco-scrollable-element > .visible,
margin-right: -1px .monaco-scrollable-element > .visible .scrollbar,
.monaco-scrollable-element > .invisible,
.monaco-scrollable-element > .invisible .scrollbar,
.monaco-scrollable-element > .invisible .fade {
background-color: var(--light)!important;
color: var(--light)!important;
}
.monaco-scrollable-element > .scrollbar > .slider {
background: #011627!important;
}
.monaco-editor .vertical {
box-shadow: none;
} }
Loading…
Cancel
Save