TeaWeb/shared/css/static/modal-permissions.scss
WolverinDEV 664f8b2abd
Implemented the Material Design and fixed some bugs (#33)
* cleaned up some files

* Fundamental style update

* Redesigned some style

* fixed hostbanner popup

* Removed old identity stuff

* fixed close listener

* Fixed changelog date

* fixed release chat icons

* fixed url

* Fixed hostbanner

* Uploaded missing images

* Improved update handling

* Improved script files

* Fixed loading error and icon error

* fixed Yes/No modal

* Fixed loader issues with MS Edge

* fixed modal style bug

* Fixed control bar overflow for small devices

* Improved error handling on identity creation

* Logging generate error to terminal

* fixed possible php error

* fixed some possible loading errors when other files have'nt been already loaded.

* removed debug message

* Changed emsrcypten flags

* Improved codec error handling

* removed webassembly as required dependency

* Improved and fixed channel tree issues

* Improved the sliders

* Removed unneeded files

* fixed loader versions cache

* second slight performance improved (dont animate elements anymore if they are not shown)

* Fixed query visibility setting

* not showing useless client infos for query clients

* Added an auto reconnect system

* Added a canceled message and increased reconnect interval

* removed implemented todo

* fixed repetitive channel names

* Reworked the channel tree selected lines

* Fixed channel tree names

* Fixed name alignment

* fixed the native client

* added min width to the server select groups to avoid a disappearing effect on shrink

* fixed bugged downloaded icons
2019-02-17 16:08:10 +01:00

302 lines
No EOL
4.5 KiB
SCSS

permission-editor {
display: flex;
flex-direction: column;
flex-grow: 1;
flex-shrink: 1;
}
.container-permissions {
flex-grow: 1;
flex-shrink: 1;
display: flex;
height: 100%;
}
.permission-explorer {
width: 100%;
display: flex;
flex-direction: column;
justify-content: stretch;
user-select: none;
.container-filter, .container-footer {
flex-grow: 0;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: stretch;
.container-input {
flex-grow: 1;
flex-shrink: 1;
margin-right: 10px;
}
}
.container-permission-list {
flex-grow: 1;
flex-shrink: 1;
display: flex;
flex-direction: column;
.header {
border: solid 1px lightgray;
display: flex;
flex-direction: row;
.column-granted {
width: 75px + 15px !important; /* because of the scroll bar */
}
.column-name {
padding-left: 4px;
}
}
.entries {
flex-grow: 1;
overflow-y: scroll;
overflow-x: hidden;
padding-left: 3px; /* because of the arrow */
padding-right: 3px; /* because of the scroll bar */
}
.entry {
flex-grow: 0;
flex-shrink: 0;
width: 100%;
display: flex;
flex-direction: row;
justify-content: stretch;
.column-name {
flex-grow: 1;
flex-shrink: 1;
}
.column-value, .column-granted {
flex-grow: 0;
flex-shrink: 0;
width: 75px;
text-align: center;
align-self: center;
display: flex;
flex-direction: row;
justify-content: space-around;
input[type=number] {
width: 68px;
}
}
.column-skip, .column-negate {
flex-grow: 0;
flex-shrink: 0;
width: 75px;
text-align: center;
align-self: center;
display: flex;
flex-direction: row;
justify-content: space-around;
}
&.value-unset {
.column-value, .column-skip, .column-negate {
.checkbox, input {
visibility: hidden;
}
}
}
&.grant-unset {
.column-granted {
.checkbox, input {
visibility: hidden;
}
}
}
.checkbox {
display: flex;
flex-direction: row;
justify-content: center;
margin-bottom: 0!important;
}
.form-group {
margin-bottom: 0px;
}
&.group {
display: flex;
flex-direction: column;
.group-entries {
padding-left: 30px;
}
}
.bmd-form-group {
padding-top: 0;
}
&.permission {
height: 33px;
&:hover {
background: #00000011;
.checkbox {
.checkmark {
background-color: #bbb;
}
&:hover input ~ .checkmark {
background-color: #aaa;
}
input:checked ~ .checkmark {
background-color: #2196F3;
}
}
}
.checkbox {
height: 16px;
width: 16px;
display: block;
position: relative;
cursor: pointer;
font-size: 22px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* Hide the browser's default checkbox */
input {
position: absolute;
opacity: 0;
cursor: pointer;
left: 0;
top: 0;
}
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 16px;
width: 16px;
background-color: #eee;
&:after {
content: "";
position: absolute;
display: none;
left: 6px;
top: 2px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
}
&:hover input ~ .checkmark {
background-color: #ccc;
}
input:checked ~ .checkmark {
background-color: #2196F3;
}
input:checked ~ .checkmark:after {
display: block;
}
}
}
}
.arrow {
cursor: pointer;
margin-right: 5px;
}
}
.container-footer {
margin-top: 10px;
justify-content: flex-end;
}
.container-mode {
display: flex;
flex-grow: 1;
flex-shrink: 1;
&.container-mode-unset {
background-color: lightgray;
}
&.container-mode-no-permissions {
background-color: lightgray;
text-align: center;
justify-content: space-around;
display: flex;
flex-direction: column;
}
}
}
.tab-client, .tab-client-channel {
.client-select {
padding-bottom: 20px; /* for the error message */
.invalid-feedback {
position: absolute;
}
}
}
.tab-client-channel {
.container-client-channel {
display: flex;
flex-direction: column;
justify-content: stretch;
.list-channel {
flex-grow: 1;
flex-shrink: 1;
width: 100%;
}
}
}