Skip to content

Commit b0a02ce

Browse files
author
Zaydek Michels-Gualtieri
committed
More WYSIWYGMenu aesthetic tweaks
1 parent 66e738e commit b0a02ce

File tree

4 files changed

+12
-46
lines changed

4 files changed

+12
-46
lines changed

src/EditorApp/WYSIWYGMenu.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ import userAgent from "lib/Client/userAgent"
2323
const WYSIWYGMenu = ({ state, dispatch }) => {
2424
const [tooltip, setTooltip] = React.useState("")
2525

26+
// hover:shadow-hero-lg transition duration-200 ease-in-out
2627
return (
27-
<div className="px-3 py-2 flex flex-row items-center bg-white rounded-lg shadow-hero hover:shadow-hero-lg transition duration-200 ease-in-out">
28+
<div className="px-3 py-2 flex flex-row items-center bg-white rounded-lg shadow-hero">
2829
<div className="-ml-0.5" />
2930

3031
<div
@@ -55,7 +56,7 @@ const WYSIWYGMenu = ({ state, dispatch }) => {
5556
</div>
5657
<p className="whitespace-pre text-xs text-gray-100">
5758
Bold{" ".repeat(2)}
58-
<span className="text-blue-200">
59+
<span className="opacity-75">
5960
{!userAgent.MacOSX ? "Ctrl+B" : "⌘+B"}
6061
</span>
6162
</p>
@@ -96,7 +97,7 @@ const WYSIWYGMenu = ({ state, dispatch }) => {
9697
</div>
9798
<p className="whitespace-pre text-xs text-gray-100">
9899
Italic{" ".repeat(2)}
99-
<span className="text-blue-200">
100+
<span className="opacity-75">
100101
{!userAgent.MacOSX ? "Ctrl+I" : "⌘+I"}
101102
</span>
102103
</p>
@@ -137,7 +138,7 @@ const WYSIWYGMenu = ({ state, dispatch }) => {
137138
</div>
138139
<p className="whitespace-pre text-xs text-gray-100">
139140
Code{" ".repeat(2)}
140-
<span className="text-blue-200">
141+
<span className="opacity-75">
141142
{!userAgent.MacOSX ? "Shift+Ctrl+C" : "Shift+⌘+C"}
142143
</span>
143144
</p>
@@ -178,7 +179,7 @@ const WYSIWYGMenu = ({ state, dispatch }) => {
178179
</div>
179180
<p className="whitespace-pre text-xs text-gray-100">
180181
Strikethrough{" ".repeat(2)}
181-
<span className="text-blue-200">
182+
<span className="opacity-75">
182183
{!userAgent.MacOSX ? "Shift+Ctrl+X" : "Shift+⌘+X"}
183184
</span>
184185
</p>
@@ -219,7 +220,7 @@ const WYSIWYGMenu = ({ state, dispatch }) => {
219220
</div>
220221
<p className="whitespace-pre text-xs text-gray-100">
221222
Link{" ".repeat(2)}
222-
<span className="text-blue-200">
223+
<span className="opacity-75">
223224
{!userAgent.MacOSX ? "Ctrl+K" : "⌘+K"}
224225
</span>
225226
</p>

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import "debug.css"
99

1010
import "stylesheets/tailwind-css/tailwind.generated.css" // Takes precedence
1111
import "stylesheets/tailwind-css/color-vars.css"
12-
import "stylesheets/tailwind-css/custom.css"
12+
import "stylesheets/tailwind-css/font-mono.css"
1313
import "stylesheets/tailwind-css/em-context.css"
1414

1515
import "stylesheets/prism-js/language-gfm.css"

src/stylesheets/tailwind-css/custom.css

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.font-mono {
2+
-moz-osx-font-smoothing: auto;
3+
-webkit-font-smoothing: auto;
4+
}

0 commit comments

Comments
 (0)