Skip to content

Commit

Permalink
Adjust UI scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed Jan 22, 2024
1 parent 146841d commit 49ceaa6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/ui/intro-tutorial.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function startTutorial() {
{
popover: {
title: 'Greetings',
description: 'This is a very short introduction to Slay the Web. Follow me...',
description: 'This is a very short introduction to Slay the Web. Follow me... (press enter)',
},
},
{
Expand Down
27 changes: 8 additions & 19 deletions src/ui/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

html {
font-size: 2.2vw;
font-size: max(16px, min(1.7vmin, 24px));
line-height: 1.4;
color: var(--text);
cursor: url(/images/cursors/default.png), auto;
Expand All @@ -19,20 +19,6 @@ html {
background-repeat: no-repeat;
}

/* Minimum font size */
@media (max-width: 900px) {
html {
font-size: 15px;
}
}

/* Maximum font size */
@media (min-width: 1000px) {
html {
font-size: 20px;
}
}

html,
button,
input,
Expand Down Expand Up @@ -342,9 +328,12 @@ h2 {
.Hand .Card {
margin-left: -1.5rem;
cursor: grab;
cursor: url(/images/cursors/grab-open.png) 10 0, auto;
cursor:
url(/images/cursors/grab-open.png) 10 0,
auto;
}
.Hand .Card-inner {
}
.Hand .Card-inner {}
.Hand .Card[disabled] {
cursor: not-allowed;
}
Expand Down Expand Up @@ -489,7 +478,8 @@ h2 {
height: 100%;
}

.Card:not([data-card-upgraded]) {}
.Card:not([data-card-upgraded]) {
}
.Card[data-card-upgraded] {
display: none;
}
Expand Down Expand Up @@ -520,5 +510,4 @@ h2 {
}

.driver-popover .driver-popover-footer button {

}

1 comment on commit 49ceaa6

@vercel
Copy link

@vercel vercel bot commented on 49ceaa6 Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

slaytheweb – ./

slaytheweb-git-main-oskar.vercel.app
slaytheweb.vercel.app
slaytheweb-oskar.vercel.app
slaytheweb.cards

Please sign in to comment.