Skip to content

Commit

Permalink
Refine groups UI - fixes #2938
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrancis committed Aug 11, 2023
1 parent e30d64f commit d0a852f
Show file tree
Hide file tree
Showing 24 changed files with 887 additions and 364 deletions.
77 changes: 77 additions & 0 deletions static/css/add-group.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#add-group-screen {
display: flex;
align-items: center;
justify-content: center;
}

#add-group-screen.hidden {
display: none;
}

#add-group-screen h1 {
position: fixed;
top: 0;
line-height: 9.6rem;
margin: 0;
font-size: 1.6rem;
text-align: center;
font-family: 'Open Sans', sans-serif;
font-weight: normal;
width: calc(100% - 18rem);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

#add-group-screen h1 img {
vertical-align: middle;
margin-right: 0.3rem;
}

#add-group-form {
width: calc(100% - 4rem);
max-width: 48rem;
padding: 4rem;
box-sizing: border-box;
display: flex;
flex-direction: row;
background-color: #597285;
border-radius: 0.5rem;
}

#add-group-title-input {
height: 3.2rem;
flex: 1;
margin: 0;
padding: 0 1rem;
box-sizing: border-box;
}

#add-group-create-button {
height: 3.2rem;
font-size: 1.5rem;
margin: 0 0 0 1rem;
padding: 0 1rem;
box-sizing: border-box;
background-color: #7f93a1;
}

#add-group-create-button:hover,
#add-group-create-button:active {
background-color: #97aebf;
}

@media only screen and (max-width: 959px) {
#add-group-form {
flex-direction: column;
}

#add-group-title-input {
flex: none;
}

#add-group-create-button {
margin: 2rem auto 0 auto;
width: 9rem;
}
}
40 changes: 0 additions & 40 deletions static/css/add-thing.css
Original file line number Diff line number Diff line change
Expand Up @@ -327,43 +327,3 @@
width: 12rem;
}
}

#add-group {
background-color: #597285;
width: 50%;
min-width: 28rem;
max-width: 65rem;
margin: 1rem auto;
padding: 1rem;
display: flex;
flex-direction: row;
border-radius: 0.5rem;
text-align: center;
flex-wrap: wrap;
}

#add-group-label {
flex-basis: 100%;
flex-grow: 1;
}

#add-group-title-input {
height: 1.75rem;
background-color: #d2d9de;
border: none;
border-radius: 0.5rem;
padding: 0.5rem;
margin: 0.5rem 10px;
font-size: 1.6rem;
flex-grow: 1;
margin-top: 15px;
}

#add-group-add-button {
background-color: #7f93a1;
border: none;
border-radius: 0.5rem;
padding: 1rem;
color: #fff;
margin-top: 15px;
}
Loading

0 comments on commit d0a852f

Please sign in to comment.