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

199 lines
3.8 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-15 11:42:43 +02:00
background-color: rgba(255, 255, 255, .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 {
2018-08-15 11:42:43 +02:00
border: 0;
2018-08-11 19:11:56 +02:00
2018-08-15 11:42:43 +02:00
.ctx-menu { // sass-lint:disable-line class-name-format
background: #23272a;
2018-08-11 19:11:56 +02:00
border-radius: 4px;
box-shadow: none;
padding: 0;
.bd-e2eeLockContextMenuOption {
2018-08-15 11:42:43 +02:00
background: #23272a;
color: #99aab5;
padding: 8px;
2018-08-12 01:21:08 +02:00
font-weight: 500;
2018-08-11 19:11:56 +02:00
cursor: default;
&:hover {
2018-08-15 11:42:43 +02:00
background: #000;
2018-08-11 19:11:56 +02:00
}
}
}
}
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;
2018-08-15 11:42:43 +02:00
.bd-ok {
svg {
fill: $colbdgreen;
}
}
2018-08-15 11:42:43 +02:00
.bd-warn {
svg {
fill: $colwarn;
}
}
2018-08-15 04:03:56 +02:00
.bd-popoverWrapper,
.bd-popoverWrapper {
2018-08-15 04:03:56 +02:00
.bd-popoverInner,
.bd-popoverInner {
display: flex;
2018-08-15 11:42:43 +02:00
> div {
&:first-child {
display: flex;
2018-08-15 11:42:43 +02:00
> div {
&:not(:first-child) {
margin-left: 10px;
}
}
}
}
2018-08-15 04:03:56 +02:00
.bd-materialDesignIcon,
.bd-materialDesignIcon {
display: flex;
fill: #7e8084;
cursor: pointer;
&:hover {
2018-08-15 11:42:43 +02:00
fill: #fff;
}
}
}
}
2018-08-15 04:03:56 +02:00
.bd-popoverArrow,
.bd-popoverArrow {
display: none;
}
}
2018-08-15 11:42:43 +02:00
.bd-encryptedImage,
.bd-decryptedImage {
&::before {
content: '';
position: absolute;
background-color: $colbdgreen;
background-image: $lockIcon;
background-repeat: no-repeat;
}
2018-08-15 09:45:10 +02:00
}
2018-08-15 11:42:43 +02:00
.bd-encryptedImage {
&::before {
width: 100%;
height: 100%;
border-radius: 3px;
display: flex;
background-size: calc(100% / 2);
background-position: center;
}
}
2018-08-15 11:42:43 +02:00
.bd-decryptedImage {
&::before {
width: 11px;
height: 11px;
z-index: 1;
display: block;
background-size: cover;
border-radius: 100%;
border: 2px solid $colbdgreen;
top: 5px;
left: 5px;
opacity: .5;
}
}