Skip to content

Commit

Permalink
fix: styles
Browse files Browse the repository at this point in the history
  • Loading branch information
righ committed Nov 2, 2024
1 parent 6966baf commit 0b92aeb
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 73 deletions.
77 changes: 38 additions & 39 deletions src/styles/contextmenu.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,53 +22,52 @@
color: #555555;
margin: 0;
padding: 0;
}
li {
padding: 5px 10px;
list-style-type: none;

li {
padding: 5px 10px;
list-style-type: none;

&.gs-enabled {
cursor: pointer;
&:hover {
background-color: #eeeeee;
}
}
&.gs-disabled {
opacity: 0.5;
cursor: not-allowed;
&.gs-enabled {
cursor: pointer;
&:hover {
background-color: #eeeeee;
}
}
&.gs-disabled {
opacity: 0.5;
cursor: not-allowed;
}

&.gs-menu-divider {
background-color: #aaaaaa;
margin: 10px 0;
padding: 0;
height: 1px;
}
&.gs-menu-divider {
background-color: #aaaaaa;
margin: 10px 0;
padding: 0;
height: 1px;
}

display: flex;
display: flex;

.gs-menu-name {
flex: 1;
font-size: 15px;
letter-spacing: 1px;
}
.gs-menu-name {
flex: 1;
font-size: 15px;
letter-spacing: 1px;
}

.gs-menu-shortcut {
font-size: 10px;
line-height: 15px;
color: #999999;
width: 15px;
.gs-menu-shortcut {
font-size: 10px;
line-height: 15px;
color: #999999;
width: 15px;

&:before {
content: "(";
}
&:after {
content: ")";
}
&:before {
content: "(";
}
&:after {
content: ")";
}

.gs-menu-underline {
text-decoration: underline;
}
.gs-menu-underline {
text-decoration: underline;
}
}
}
Expand Down
12 changes: 3 additions & 9 deletions src/styles/editor.less
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,13 @@
-moz-box-sizing: border-box;
overflow: hidden;
cursor: default;
white-space: pre;
height: auto;
}
&.gs-editing {
z-index: 3;
opacity: 1;

textarea {
cursor: text;
min-width: 100%;
white-space: pre;
outline: none;
border: none !important;
height: auto;
}

.gs-cell-label {
pointer-events: none;
font-family: math, monospace, serif;
Expand Down
4 changes: 2 additions & 2 deletions src/styles/minified.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/styles/root.min.css

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/styles/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
z-index: 1;
flex: 1;
}
.gs-search-progress {
color: #999999;
padding: 6px 3px;
font-size: 13px;
text-align: right;
}
}
.gs-search-progress {
color: #999999;
padding: 6px 3px;
font-size: 13px;
text-align: right;
}

.gs-search-close {
Expand Down
16 changes: 0 additions & 16 deletions src/styles/tabular.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,6 @@
display: block;
box-sizing: border-box;
overscroll-behavior-x: contain;

.gs-row:last-child {
.gs-th-inner-wrap {
border-bottom: none;
}
}
.gs-row {
th:last-child {
.gs-th-inner-wrap {
border-right: none;
}
}
td:last-child {
border-right: none;
}
}
}

.gs-tabular-inner {
Expand Down
1 change: 1 addition & 0 deletions src/styles/theme-dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
caret-color: @dark_text_color;
}
.gs-editor-hl {
background-color: @dark_cell_color;
color: @dark_text_color;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/styles/theme-light.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
caret-color: @light_text_color;
}
.gs-editor-hl {
background-color: @light_cell_color;
color: @light_text_color;
}
}
Expand Down

0 comments on commit 0b92aeb

Please sign in to comment.