Skip to content

Commit

Permalink
Remove 3d translations
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Mar 21, 2021
1 parent 8d6b4b0 commit 4385752
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ body:not(.hider-ribbon):not(.hider-frameless)
margin: -0.5px auto 0;
text-align: center;
top: 50%;
transform: translate3d(0, -50%, 0);
transform: translateY(-50%);
padding: 0;
left: 0;
right: 0;
Expand Down Expand Up @@ -1696,7 +1696,7 @@ body:not(.is-grabbing) .nav-folder-title:hover {
vertical-align: unset;
align-items: center;
color: var(--text-faint);
transform: translate3d(0, -50%, 0);
transform: translateY(-50%);
}
.search-input-clear-button:hover {
color: var(--text-normal);
Expand Down Expand Up @@ -2593,7 +2593,7 @@ body.plugin-sliding-panes-rotate-header
line-height: 1;
padding: 10px 6px !important;
margin: 0;
transform: translate3d(1.5px, 0, 0);
transform: translateX(1.5px);
}
body.plugin-sliding-panes-rotate-header
.workspace
Expand Down Expand Up @@ -2932,7 +2932,7 @@ html .plugin-sliding-panes-rotate-header.embedded-note-title .CodeMirror-lines {
/* Fancy cursor */
.fancy-cursor .CodeMirror-cursor {
border-left: 2px solid var(--text-accent);
transform: translate3d(-0.5px, 0, 0);
transform: translateX(-0.5px);
}
.markdown-source-view {
padding: 0;
Expand Down Expand Up @@ -3185,7 +3185,7 @@ input[type="checkbox"]:checked:before {
position: absolute;
left: -2.5rem;
top: 50%;
transform: translate3d(0, -50%, 0);
transform: translateY(-50%);
}

.markdown-preview-view li > .collapse-indicator:before {
Expand Down Expand Up @@ -3280,7 +3280,7 @@ input[type="checkbox"]:checked:before {
width: 18px;
left: 0 !important;
padding-right: 0;
transform: translate3d(2rem, 0, 0);
transform: translateX(2rem);
}

.CodeMirror-foldmarker {
Expand Down Expand Up @@ -4320,7 +4320,7 @@ a[href*="obsidian://search"]:after
> span:first-child:not(:only-child) {
position: absolute;
left: 0;
transform: translate3d(-100%, 0, 0);
transform: translateX(-100%);
font-size: 11px !important;
display: block;
height: 100%;
Expand Down Expand Up @@ -4350,7 +4350,7 @@ a[href*="obsidian://search"]:after
width: 1px;
position: absolute;
top: 0;
transform: translate3d(-1.5px, 0, 0);
transform: translateX(-1.5px);
background: var(--shade-5);
height: 100%;
}
Expand Down Expand Up @@ -4409,7 +4409,7 @@ a[href*="obsidian://search"]:after
top: 51%;
left: 0;
display: block;
transform: translate3d(-56%, -50%, 0);
transform: translate(-56%, -50%);
width: 6px;
height: 6px;
content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" style="fill:rgba(0, 0, 0);"><path d="M12,2C6.486,2,2,6.486,2,12s4.486,10,10,10s10-4.486,10-10S17.514,2,12,2z"></path></svg>');
Expand Down
4 changes: 2 additions & 2 deletions src/010-main.css
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ body:not(.hider-ribbon):not(.hider-frameless)
margin: -0.5px auto 0;
text-align: center;
top: 50%;
transform: translate3d(0, -50%, 0);
transform: translateY(-50%);
padding: 0;
left: 0;
right: 0;
Expand Down Expand Up @@ -1691,7 +1691,7 @@ body:not(.is-grabbing) .nav-folder-title:hover {
vertical-align: unset;
align-items: center;
color: var(--text-faint);
transform: translate3d(0, -50%, 0);
transform: translateY(-50%);
}
.search-input-clear-button:hover {
color: var(--text-normal);
Expand Down
2 changes: 1 addition & 1 deletion src/011-sliding-panes.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ body.plugin-sliding-panes-rotate-header
line-height: 1;
padding: 10px 6px !important;
margin: 0;
transform: translate3d(1.5px, 0, 0);
transform: translateX(1.5px);
}
body.plugin-sliding-panes-rotate-header
.workspace
Expand Down
6 changes: 3 additions & 3 deletions src/020-document.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/* Fancy cursor */
.fancy-cursor .CodeMirror-cursor {
border-left: 2px solid var(--text-accent);
transform: translate3d(-0.5px, 0, 0);
transform: translateX(-0.5px);
}
.markdown-source-view {
padding: 0;
Expand Down Expand Up @@ -295,7 +295,7 @@ input[type="checkbox"]:checked:before {
position: absolute;
left: -2.5rem;
top: 50%;
transform: translate3d(0, -50%, 0);
transform: translateY(-50%);
}

.markdown-preview-view li > .collapse-indicator:before {
Expand Down Expand Up @@ -390,7 +390,7 @@ input[type="checkbox"]:checked:before {
width: 18px;
left: 0 !important;
padding-right: 0;
transform: translate3d(2rem, 0, 0);
transform: translateX(2rem);
}

.CodeMirror-foldmarker {
Expand Down
6 changes: 3 additions & 3 deletions src/050-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
> span:first-child:not(:only-child) {
position: absolute;
left: 0;
transform: translate3d(-100%, 0, 0);
transform: translateX(-100%);
font-size: 11px !important;
display: block;
height: 100%;
Expand Down Expand Up @@ -123,7 +123,7 @@
width: 1px;
position: absolute;
top: 0;
transform: translate3d(-1.5px, 0, 0);
transform: translateX(-1.5px);
background: var(--shade-5);
height: 100%;
}
Expand Down Expand Up @@ -182,7 +182,7 @@
top: 51%;
left: 0;
display: block;
transform: translate3d(-56%, -50%, 0);
transform: translate(-56%, -50%);
width: 6px;
height: 6px;
content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" style="fill:rgba(0, 0, 0);"><path d="M12,2C6.486,2,2,6.486,2,12s4.486,10,10,10s10-4.486,10-10S17.514,2,12,2z"></path></svg>');
Expand Down

0 comments on commit 4385752

Please sign in to comment.