mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
feat(UI/role-picker): make buttons green and sticky to the top of the picker
This commit is contained in:
parent
f19bdca5f1
commit
3b0d249e41
3 changed files with 17 additions and 4 deletions
|
@ -10,6 +10,8 @@
|
||||||
align-items: flex-start
|
align-items: flex-start
|
||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
flex-direction: row
|
flex-direction: row
|
||||||
|
margin-top: -5px;
|
||||||
|
padding-top: 5px;
|
||||||
|
|
||||||
&__category
|
&__category
|
||||||
// flex: 1 3 33%
|
// flex: 1 3 33%
|
||||||
|
@ -23,9 +25,15 @@
|
||||||
display: flex
|
display: flex
|
||||||
align-items: center
|
align-items: center
|
||||||
justify-content: left
|
justify-content: left
|
||||||
|
|
||||||
color: var(--c-7)
|
color: var(--c-7)
|
||||||
|
|
||||||
|
&.sticky
|
||||||
|
position: sticky
|
||||||
|
top: 0px
|
||||||
|
background-color: var(--c-3)
|
||||||
|
z-index: 10
|
||||||
|
|
||||||
|
|
||||||
svg
|
svg
|
||||||
transition: transform 0.05s ease-in-out
|
transition: transform 0.05s ease-in-out
|
||||||
transform: translateZ(0)
|
transform: translateZ(0)
|
||||||
|
@ -43,6 +51,7 @@
|
||||||
&__actions
|
&__actions
|
||||||
opacity: 1
|
opacity: 1
|
||||||
transition: opacity 0.3s ease-in-out
|
transition: opacity 0.3s ease-in-out
|
||||||
|
padding: 10px
|
||||||
|
|
||||||
button
|
button
|
||||||
margin-left: 5px
|
margin-left: 5px
|
||||||
|
|
|
@ -116,7 +116,7 @@ class RolePicker extends Component {
|
||||||
<Prompt when={this.rolesHaveChanged} message="Are you sure you want to leave? You have unsaved changes that will be lost." />
|
<Prompt when={this.rolesHaveChanged} message="Are you sure you want to leave? You have unsaved changes that will be lost." />
|
||||||
{ this.renderServerMessage(server) }
|
{ this.renderServerMessage(server) }
|
||||||
<section>
|
<section>
|
||||||
<div className="role-picker__header">
|
<div className="role-picker__header sticky">
|
||||||
<h3>Roles</h3>
|
<h3>Roles</h3>
|
||||||
{ server.getIn(['perms', 'canManageRoles']) === true
|
{ server.getIn(['perms', 'canManageRoles']) === true
|
||||||
? <Link to={`/s/${server.get('id')}/edit`} uk-tooltip='' title='Edit Categories' uk-icon="icon: file-edit"></Link>
|
? <Link to={`/s/${server.get('id')}/edit`} uk-tooltip='' title='Edit Categories' uk-icon="icon: file-edit"></Link>
|
||||||
|
|
|
@ -32,13 +32,17 @@
|
||||||
opacity: 1
|
opacity: 1
|
||||||
|
|
||||||
&.primary
|
&.primary
|
||||||
background-color: var(--c-5)
|
background-color: var(--c-green)
|
||||||
color: var(--c-9)
|
color: var(--c-dark)
|
||||||
|
|
||||||
&.secondary
|
&.secondary
|
||||||
background-color: var(--c-3)
|
background-color: var(--c-3)
|
||||||
color: var(--c-7)
|
color: var(--c-7)
|
||||||
|
|
||||||
|
&.c5
|
||||||
|
background-color: var(--c-5)
|
||||||
|
color: var(--c-9)
|
||||||
|
|
||||||
&.discord
|
&.discord
|
||||||
background-color: var(--c-discord)
|
background-color: var(--c-discord)
|
||||||
color: var(--c-white)
|
color: var(--c-white)
|
||||||
|
|
Loading…
Add table
Reference in a new issue