Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Improve styles
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Sep 9, 2019
1 parent a9e5501 commit 8ead15a
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 10 deletions.
1 change: 1 addition & 0 deletions public/index.html
Expand Up @@ -10,6 +10,7 @@
content="Amber Web, a task list app."
/>
<link rel="apple-touch-icon" href="logo192.png" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>Amber Web</title>
</head>
Expand Down
12 changes: 6 additions & 6 deletions src/views/editorView.tsx
Expand Up @@ -135,29 +135,29 @@ class EditorView extends React.Component<Props, State> {
</span>
<div className="editor">
<div className="row">
<span className="label">
<label className="label">
{strings.editor_statusTp}
</span>
</label>
<input
type="checkbox"
checked={task.Completed}
onChange={this.updateStatus}
/>
</div>
<div className="row">
<span className="label">
<label className="label">
{strings.editor_textTp}
</span>
</label>
<input
type="text"
onChange={this.updateText}
value={task.Text}
/>
</div>
<div className="row">
<span className="label">
<label className="label">
{strings.editor_parentTp}
</span>
</label>
<TaskSelect
current={task}
initialValue={task.PID}
Expand Down
6 changes: 4 additions & 2 deletions src/views/styles/editorView.scss
Expand Up @@ -8,18 +8,20 @@ div.header {

div.main {
margin: $spacing;
margin-left: $spacing * 2;
margin-top: $spacing * 4;
.mainSubheading {
font-weight: bolder;
}
div.editor {
margin: $spacing;
margin-top: $spacing * 2;
display: flex;
flex-direction: column;
.row {
display: flex;
flex-direction: row;
margin: $spacing/2 0;
align-content: center;
margin: $spacing 0;
.label {
display: block;
min-width: $spacing * 8;
Expand Down
20 changes: 18 additions & 2 deletions src/views/styles/mainView.scss
Expand Up @@ -4,8 +4,8 @@ div.header {
display: flex;
flex-direction: row;
justify-content: space-between;
* {
margin-left: $spacing;
input[type="button"] {
margin: 0 $spacing;
}
span.userName {
font-weight: bold;
Expand All @@ -14,3 +14,19 @@ div.header {
align-self: flex-end;
}
}

@media (max-width: 600px) {
span.loggedInMsg {
display: none;
}
div.header {
justify-content: center !important;
div.headerText {
display: none;
}
div.headerButtons {
display: flex;
justify-content: space-evenly;
}
}
}
8 changes: 8 additions & 0 deletions src/views/styles/tasks.scss
Expand Up @@ -26,3 +26,11 @@ div.taskList {
}
}
}

@media (max-width: 600px) {
div.taskList {
div.taskSubtree {
margin-left: $spacing * 1.5 !important;
}
}
}

0 comments on commit 8ead15a

Please sign in to comment.