Skip to content

Commit afc2ef9

Browse files
committed
add preferences title
1 parent 0850705 commit afc2ef9

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
<head>
44
<title>p5.js Web Editor</title>
55
<link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
6+
<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
67
</head>
78
<body>
89
<div id="root" class="root-app">
910
</div>
1011
<script src="/dist/bundle.js"></script>
1112
</body>
12-
</html>
13+
</html>

shared/components/Preferences/Preferences.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Preferences extends React.Component {
1212
});
1313
return (
1414
<div className={preferencesContainerClass} tabindex="0">
15+
<div className="preferences__title-text">Preferences</div>
1516
<button className="preferences__exit-button" onClick={this.props.closePreferences}>
1617
<Isvg src={exitUrl} alt="Exit Preferences" />
1718
</button>

styles/abstracts/_placeholders.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@
3636
%preferences-button {
3737
@extend %button;
3838
background-color: $light-preferences-button-background-color;
39+
color: $light-preferences-button-color;
3940
& g {
4041
fill: $light-preferences-button-color;
4142
}
4243
&:hover {
4344
background-color: $light-preferences-button-background-color;
44-
45+
color: $light-preferences-button-hover-color;
4546
& g {
4647
fill: $light-preferences-button-hover-color;
4748
}

styles/abstracts/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
$base-font-size: 16;
2+
$menu-font-size: 21;
23

34
//colors
45
$p5js-pink: #ed225d;

styles/components/_preferences.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.preferences {
22
background-color: $light-preferences-background-color;
33
display: none;
4+
font-family: 'Montserrat', sans-serif;
45
&--selected {
56
display: flex;
67
}
@@ -15,3 +16,11 @@
1516
background-color: $light-preferences-background-color;
1617
}
1718
}
19+
20+
.preferences__title-text {
21+
margin-left: #{20 / $base-font-size}rem;
22+
font-size: $menu-font-size;
23+
font-color: white;
24+
height: #{44 / $base-font-size}rem;
25+
line-height: #{44 / $base-font-size}rem;
26+
}

0 commit comments

Comments
 (0)