add preferences title
This commit is contained in:
parent
0850705e34
commit
afc2ef91d5
5 changed files with 15 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<title>p5.js Web Editor</title>
|
<title>p5.js Web Editor</title>
|
||||||
<link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
|
<link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root" class="root-app">
|
<div id="root" class="root-app">
|
||||||
|
|
|
@ -12,6 +12,7 @@ class Preferences extends React.Component {
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<div className={preferencesContainerClass} tabindex="0">
|
<div className={preferencesContainerClass} tabindex="0">
|
||||||
|
<div className="preferences__title-text">Preferences</div>
|
||||||
<button className="preferences__exit-button" onClick={this.props.closePreferences}>
|
<button className="preferences__exit-button" onClick={this.props.closePreferences}>
|
||||||
<Isvg src={exitUrl} alt="Exit Preferences" />
|
<Isvg src={exitUrl} alt="Exit Preferences" />
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -36,12 +36,13 @@
|
||||||
%preferences-button {
|
%preferences-button {
|
||||||
@extend %button;
|
@extend %button;
|
||||||
background-color: $light-preferences-button-background-color;
|
background-color: $light-preferences-button-background-color;
|
||||||
|
color: $light-preferences-button-color;
|
||||||
& g {
|
& g {
|
||||||
fill: $light-preferences-button-color;
|
fill: $light-preferences-button-color;
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $light-preferences-button-background-color;
|
background-color: $light-preferences-button-background-color;
|
||||||
|
color: $light-preferences-button-hover-color;
|
||||||
& g {
|
& g {
|
||||||
fill: $light-preferences-button-hover-color;
|
fill: $light-preferences-button-hover-color;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
$base-font-size: 16;
|
$base-font-size: 16;
|
||||||
|
$menu-font-size: 21;
|
||||||
|
|
||||||
//colors
|
//colors
|
||||||
$p5js-pink: #ed225d;
|
$p5js-pink: #ed225d;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
.preferences {
|
.preferences {
|
||||||
background-color: $light-preferences-background-color;
|
background-color: $light-preferences-background-color;
|
||||||
display: none;
|
display: none;
|
||||||
|
font-family: 'Montserrat', sans-serif;
|
||||||
&--selected {
|
&--selected {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
@ -15,3 +16,11 @@
|
||||||
background-color: $light-preferences-background-color;
|
background-color: $light-preferences-background-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.preferences__title-text {
|
||||||
|
margin-left: #{20 / $base-font-size}rem;
|
||||||
|
font-size: $menu-font-size;
|
||||||
|
font-color: white;
|
||||||
|
height: #{44 / $base-font-size}rem;
|
||||||
|
line-height: #{44 / $base-font-size}rem;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue