App: browser compat updates

This commit is contained in:
rektdeckard
2021-05-30 23:31:26 -04:00
parent 73b66e2e86
commit b8eac52689
9 changed files with 40 additions and 38 deletions

View File

@@ -15,10 +15,10 @@ h2 {
} }
img { img {
user-select: none;
-moz-user-select: none; -moz-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
-webkit-user-drag: none; -webkit-user-drag: none;
user-select: none;
} }
pre, pre,
@@ -65,9 +65,10 @@ button.main-button {
transform: translate(0, 0); transform: translate(0, 0);
transition: all 0.2s ease; transition: all 0.2s ease;
cursor: pointer; cursor: pointer;
user-select: none;
-moz-user-select: none; -moz-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
-webkit-user-drag: none;
user-select: none;
margin: 0 24px 24px 0; margin: 0 24px 24px 0;
} }

View File

@@ -16,9 +16,9 @@
left: 50%; left: 50%;
-ms-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
user-select: none;
-moz-user-select: none; -moz-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
user-select: none;
pointer-events: none; pointer-events: none;
text-transform: uppercase; text-transform: uppercase;
} }

View File

@@ -48,9 +48,9 @@ footer .links {
.illustrations-footer { .illustrations-footer {
display: none; display: none;
user-select: none;
-moz-user-select: none; -moz-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
user-select: none;
pointer-events: none; pointer-events: none;
} }

View File

@@ -60,7 +60,7 @@ header {
top: -158px; top: -158px;
} }
#billiard-ball { .billiard-ball {
position: absolute; position: absolute;
left: 132px; left: 132px;
top: -98px; top: -98px;
@@ -72,13 +72,13 @@ header {
top: 152px; top: 152px;
} }
#warning { .warning {
position: absolute; position: absolute;
left: 394px; left: 394px;
top: -304px; top: -304px;
} }
#tablet { .tablet {
position: absolute; position: absolute;
left: 672px; left: 672px;
top: -900px; top: -900px;
@@ -94,18 +94,18 @@ header {
height: 612px; height: 612px;
} }
#cutting-mat { .cutting-mat {
position: absolute; position: absolute;
left: 96px; left: 96px;
} }
#receipt { .receipt {
position: absolute; position: absolute;
left: -36px; left: -36px;
top: 190px; top: 190px;
} }
#calculator { .calculator {
position: absolute; position: absolute;
left: 632px; left: 632px;
top: 170px; top: 170px;
@@ -131,7 +131,7 @@ header {
top: -158px; top: -158px;
} }
#billiard-ball { .billiard-ball {
position: absolute; position: absolute;
left: 900px; left: 900px;
top: 400px; top: 400px;
@@ -148,30 +148,30 @@ header {
top: 694px; top: 694px;
} }
#warning { .warning {
position: absolute; position: absolute;
left: 1170px; left: 1170px;
top: 400px; top: 400px;
} }
#tablet { .tablet {
position: absolute; position: absolute;
left: 578px; left: 578px;
top: -900px; top: -900px;
} }
#cutting-mat { .cutting-mat {
position: absolute; position: absolute;
left: 120px; left: 120px;
} }
#receipt { .receipt {
position: absolute; position: absolute;
left: -16px; left: -16px;
top: 190px; top: 190px;
} }
#calculator { .calculator {
position: absolute; position: absolute;
left: 924px; left: 924px;
top: 114px; top: 114px;

View File

@@ -41,22 +41,22 @@ const Header: React.FC<HeaderProps> = () => {
<img src={markerPurple} id="marker-purple" alt="" /> <img src={markerPurple} id="marker-purple" alt="" />
<img src={paperclips} id="paperclips" alt="" /> <img src={paperclips} id="paperclips" alt="" />
<img src={paperclipsThree} id="paperclips-three" alt="" /> <img src={paperclipsThree} id="paperclips-three" alt="" />
<img id="tablet" src={tabletSpec} alt="" /> <img className="tablet" src={tabletSpec} alt="" />
<img id="tablet" className="inspectable xray" src={tablet} alt="" /> <img className="tablet inspectable xray" src={tablet} alt="" />
<img id="billiard-ball" src={billiardBallSpec} alt="" /> <img className="billiard-ball" src={billiardBallSpec} alt="" />
<img <img
id="billiard-ball" className="billiard-ball inspectable xray"
className="inspectable xray"
src={billiardBall} src={billiardBall}
alt="" alt=""
/> />
<img id="warning" src={warningSpec} alt="" /> <img className="warning" src={warningSpec} alt="" />
<img id="warning" className="inspectable xray" src={warning} alt="" /> <img className="warning inspectable xray" src={warning} alt="" />
</div> </div>
<div className="intro"> <div className="intro">
<h2> <h2>
Phosphor is a flexible icon family for interfaces, diagrams, presentations   Phosphor is a flexible icon family for interfaces, diagrams,
presentations  
<wbr /> <wbr />
whatever, really. whatever, really.
</h2> </h2>
@@ -73,19 +73,17 @@ const Header: React.FC<HeaderProps> = () => {
<Links /> <Links />
</div> </div>
<div className="illustrations-bottom"> <div className="illustrations-bottom">
<img id="cutting-mat" src={cuttingMatSpec} alt="" /> <img className="cutting-mat" src={cuttingMatSpec} alt="" />
<img <img
id="cutting-mat" className="cutting-mat inspectable xray"
className="inspectable xray"
src={cuttingMat} src={cuttingMat}
alt="" alt=""
/> />
<img id="receipt" src={receiptSpec} alt="" /> <img className="receipt" src={receiptSpec} alt="" />
<img id="receipt" className="inspectable xray" src={receipt} alt="" /> <img className="receipt inspectable xray" src={receipt} alt="" />
<img id="calculator" src={calculatorSpec} alt="" /> <img className="calculator" src={calculatorSpec} alt="" />
<img <img
id="calculator" className="calculator inspectable xray"
className="inspectable xray"
src={calculator} src={calculator}
alt="" alt=""
/> />

View File

@@ -22,9 +22,9 @@
justify-content: center; justify-content: center;
margin: 4px; margin: 4px;
border-radius: 16px; border-radius: 16px;
user-select: none;
-moz-user-select: none; -moz-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
user-select: none;
cursor: pointer; cursor: pointer;
/* transition: background-color 100ms ease; */ /* transition: background-color 100ms ease; */
} }
@@ -95,9 +95,9 @@
align-items: center; align-items: center;
text-overflow: ellipsis; text-overflow: ellipsis;
color: black; color: black;
user-select: all;
-moz-user-select: all; -moz-user-select: all;
-webkit-user-select: all; -webkit-user-select: all;
user-select: all;
} }
.snippet pre:focus { .snippet pre:focus {
@@ -106,9 +106,9 @@
@keyframes select { @keyframes select {
to { to {
user-select: text;
-moz-user-select: text; -moz-user-select: text;
-webkit-user-select: text; -webkit-user-select: text;
user-select: text;
} }
} }

View File

@@ -56,6 +56,8 @@
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none; user-select: none;
min-width: 42px; min-width: 42px;
font-size: 12px; font-size: 12px;

View File

@@ -1,4 +1,5 @@
menu.toolbar { nav.toolbar {
position: -webkit-sticky;
position: sticky; position: sticky;
top: -1px; top: -1px;
padding: 0; padding: 0;

View File

@@ -10,14 +10,14 @@ type ToolbarProps = {};
const Toolbar: React.FC<ToolbarProps> = () => { const Toolbar: React.FC<ToolbarProps> = () => {
return ( return (
<menu className="toolbar" id="toolbar"> <nav className="toolbar" id="toolbar">
<div className="toolbar-contents"> <div className="toolbar-contents">
<StyleInput /> <StyleInput />
<SearchInput /> <SearchInput />
<SizeInput /> <SizeInput />
<ColorInput /> <ColorInput />
</div> </div>
</menu> </nav>
); );
}; };