misuzu/assets/less/manage/role-item.less

141 lines
3.2 KiB
Text
Raw Normal View History

.manage__role-item {
2019-02-04 11:15:40 +00:00
display: flex;
text-shadow: 0 1px 4px #000;
box-shadow: 0 1px 4px #000A;
margin-bottom: 4px;
&:last-child {
margin-bottom: 0;
}
&__background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: @accent-colour;
2019-02-04 11:15:40 +00:00
background-color: var(--accent-colour);
}
&__container {
display: flex;
flex-wrap: wrap;
align-items: center;
background-color: @background-colour-translucent-9;
2019-02-04 11:15:40 +00:00
background-color: var(--background-colour-translucent-9);
width: 100%;
height: 100%;
margin-left: 5px;
pointer-events: none;
transition: background-color .2s;
}
&:hover &__container,
&:focus &__container,
&:focus-within &__container {
background-color: @background-colour-translucent-8;
2019-02-04 11:15:40 +00:00
background-color: var(--background-colour-translucent-8);
}
&__icon {
border-radius: 100%;
width: 40px;
height: 40px;
box-shadow: 0 1px 4px #111;
margin: 10px;
flex: 0 0 auto;
overflow: hidden;
&__content {
background-color: @background-colour-translucent-6;
2019-02-04 11:15:40 +00:00
background-color: var(--background-colour-translucent-6);
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
font-size: 1.5em;
transition: background-color .2s;
}
&__background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: @accent-colour;
2019-02-04 11:15:40 +00:00
background-color: var(--accent-colour);
}
}
&:hover &__icon__content,
&:focus &__icon__content,
&:focus-within &__icon__content {
background-color: @background-colour-translucent-4;
2019-02-04 11:15:40 +00:00
background-color: var(--background-colour-translucent-4);
}
&__info {
display: inline-flex;
flex-direction: column;
flex: 1 1 auto;
}
&__name {
font-size: 1.4em;
line-height: 1.4em;
}
&__details {
font-size: .9em;
line-height: 1.3em;
display: inline-flex;
align-items: center;
padding: 1px 0;
}
&__users {
border-radius: 10px;
background-color: @accent-colour;
2019-02-04 11:15:40 +00:00
background-color: var(--accent-colour);
box-shadow: 0 1px 4px #111;
padding: 2px 5px;
}
&__title {
padding: 2px 5px;
}
&__actions {
display: flex;
flex: 0 0 auto;
margin: 10px;
}
&__action {
width: 32px;
height: 32px;
line-height: 32px;
font-size: 1.5em;
border-radius: 2px;
margin: 5px;
margin-right: 0;
color: #fff;
cursor: pointer;
pointer-events: initial;
transition: background-color .2s;
text-align: center;
&:hover,
&:focus {
background-color: fade(#fff, 20%);
}
&:active {
background-color: fade(#fff, 10%);
}
}
}