Skip to content

Commit

Permalink
update font size
Browse files Browse the repository at this point in the history
  • Loading branch information
printerscanner committed Aug 26, 2024
1 parent ca05882 commit 117dd66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/FontDemo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import '../css/components/FontDemo.css';
import '../css/elements/button.css';

function FontDemo(props) {
const [fontSize, setFontSize] = useState(100);
const [fontSize, setFontSize] = useState(75);
const [leading, setLeading] = useState(1.2);
const [kerning, setKerning] = useState(1);
const [content, setContent] = useState(props.text);
Expand All @@ -22,7 +22,7 @@ function FontDemo(props) {
};

const handleRefreshClick = () => {
setFontSize(58);
setFontSize(75);
setLeading(1.2);
setKerning(0);
setContent(getRandomSampleText());
Expand Down
6 changes: 1 addition & 5 deletions src/css/components/FontDemo.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@
word-wrap: break-word;
}

@media only screen and (max-width: 1000px) {
.FontDemo__content {
font-size: 75px !important;
}
}


.FontDemo__content:focus,
.FontDemo__content:hover {
Expand Down

0 comments on commit 117dd66

Please sign in to comment.