BetterDiscordApp-v2/client/src/styles/partials/bdsettings/e2ee.scss

193 lines
3.7 KiB
SCSS
Raw Normal View History

2018-08-10 14:30:24 +02:00
.bd-e2eeTaContainer {
display: flex;
.bd-e2eeTaBtn {
padding: 10px;
display: flex;
flex: 1 1 auto;
flex-direction: row;
cursor: pointer;
2018-08-10 14:32:04 +02:00
opacity: .8;
transition: opacity .2s ease-in-out;
2018-08-10 14:33:34 +02:00
2018-08-10 14:32:04 +02:00
&:hover {
opacity: 1;
}
2018-08-10 14:30:24 +02:00
&.bd-e2eeLock {
2018-08-10 14:33:34 +02:00
&.bd-error {
2018-08-12 14:46:17 +02:00
fill: $colerr;
2018-08-10 14:33:34 +02:00
}
&.bd-ok {
fill: $colbdgreen;
}
2018-08-10 14:37:14 +02:00
&.bd-warn {
2018-08-12 14:46:17 +02:00
fill: $colwarn;
2018-08-10 14:44:33 +02:00
animation: bd-pulse 2s ease-in-out infinite;
2018-08-10 14:37:14 +02:00
}
2018-08-10 14:30:24 +02:00
}
}
.bd-taDivider {
2018-08-10 19:38:02 +02:00
background-color: rgba(255, 255, 255, 0.1);
2018-08-10 14:30:24 +02:00
box-sizing: border-box;
position: relative;
top: 10%;
width: 1px;
2018-08-10 19:38:02 +02:00
height: 37px;
margin-top: 5px;
}
2018-08-11 19:11:56 +02:00
.bd-e2eeLockContextMenu {
border: none;
.ctx-menu {
background: #23272A;
border-radius: 4px;
box-shadow: none;
padding: 0;
.bd-e2eeLockContextMenuOption {
background: #23272A;
color: #99AAB5;
2018-08-12 01:21:08 +02:00
padding: 8px 8px;
font-weight: 500;
2018-08-11 19:11:56 +02:00
cursor: default;
&:hover {
background: #000000;
}
}
}
}
2018-08-10 19:38:02 +02:00
}
.bd-e2eeMdContainer {
position: relative;
display: inline-block;
top: 4px;
.bd-e2eeMdBtn {
cursor: pointer;
&.bd-e2eeLock {
&.bd-error {
2018-08-12 14:46:17 +02:00
fill: $colerr;
2018-08-10 19:38:02 +02:00
}
&.bd-ok {
fill: $colbdgreen;
}
&.bd-warn {
2018-08-12 14:46:17 +02:00
fill: $colwarn;
}
&.bd-loading {
2018-08-10 19:38:02 +02:00
animation: bd-pulse 2s ease-in-out infinite;
}
}
2018-08-10 14:30:24 +02:00
}
}
.bd-e2eeMessageButtonWrap {
.bd-e2eeMessageButton {
fill: #99aab5;
margin-left: 6px;
margin-right: -2px;
opacity: .4;
transition: opacity .2s ease;
&:hover {
opacity: 1;
}
}
}
.bd-e2eePopover {
background: #484b51;
margin: 0;
margin-top: 15px;
.bd-ok svg {
fill: $colbdgreen;
}
.bd-warn svg {
2018-08-12 14:46:17 +02:00
fill: $colwarn;
}
.bd-popover-wrapper,
.bd-popoverWrapper {
.bd-popover-inner,
.bd-popoverInner {
display: flex;
> div:first-child {
display: flex;
> div:not(:first-child) {
margin-left: 10px;
}
}
.bd-material-design-icon,
.bd-materialDesignIcon {
display: flex;
fill: #7e8084;
cursor: pointer;
&:hover {
fill: #FFF;
}
}
}
}
.bd-popover-arrow,
.bd-popoverArrow {
display: none;
}
}
.bd-encryptedImage::before {
2018-08-13 09:57:32 +02:00
content: "";
position: absolute;
2018-08-12 14:41:25 +02:00
background: $colbdgreen;
width: 100%;
height: 100%;
border-radius: 3px;
display: flex;
2018-08-13 09:45:52 +02:00
// justify-content: center;
// align-items: flex-start;
// font-size: 1.2em;
// font-weight: 700;
// color: #2c2c2c;
// line-height: 30px;
2018-08-12 14:40:00 +02:00
background-image: $lockIcon;
2018-08-13 09:45:52 +02:00
background-size: calc(100% / 2);
background-repeat: no-repeat;
background-position: center;
}
.bd-decryptedImage::before {
content: "";
2018-08-12 14:40:00 +02:00
background-image: $lockIcon;
width: 11px;
height: 11px;
position: absolute;
z-index: 1;
display: block;
background-size: cover;
2018-08-12 14:41:25 +02:00
background-color: $colbdgreen;
background-repeat: no-repeat;
border-radius: 100%;
2018-08-12 14:41:25 +02:00
border: 2px solid $colbdgreen;
top: 5px;
left: 5px;
opacity: .5;
}