add preferences title
This commit is contained in:
parent
0850705e34
commit
afc2ef91d5
5 changed files with 15 additions and 2 deletions
|
@ -3,10 +3,11 @@
|
|||
<head>
|
||||
<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=Montserrat' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root" class="root-app">
|
||||
</div>
|
||||
<script src="/dist/bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -12,6 +12,7 @@ class Preferences extends React.Component {
|
|||
});
|
||||
return (
|
||||
<div className={preferencesContainerClass} tabindex="0">
|
||||
<div className="preferences__title-text">Preferences</div>
|
||||
<button className="preferences__exit-button" onClick={this.props.closePreferences}>
|
||||
<Isvg src={exitUrl} alt="Exit Preferences" />
|
||||
</button>
|
||||
|
|
|
@ -36,12 +36,13 @@
|
|||
%preferences-button {
|
||||
@extend %button;
|
||||
background-color: $light-preferences-button-background-color;
|
||||
color: $light-preferences-button-color;
|
||||
& g {
|
||||
fill: $light-preferences-button-color;
|
||||
}
|
||||
&:hover {
|
||||
background-color: $light-preferences-button-background-color;
|
||||
|
||||
color: $light-preferences-button-hover-color;
|
||||
& g {
|
||||
fill: $light-preferences-button-hover-color;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
$base-font-size: 16;
|
||||
$menu-font-size: 21;
|
||||
|
||||
//colors
|
||||
$p5js-pink: #ed225d;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
.preferences {
|
||||
background-color: $light-preferences-background-color;
|
||||
display: none;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
&--selected {
|
||||
display: flex;
|
||||
}
|
||||
|
@ -15,3 +16,11 @@
|
|||
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