Background gradients, migrate from CSS to SCSS, remove !important

This commit is contained in:
Maksim Eltyshev
2020-05-29 19:31:19 +05:00
parent 8534ed292c
commit 5bfff3865f
312 changed files with 4295 additions and 2989 deletions

View File

@@ -7,7 +7,7 @@ import Paths from '../../constants/Paths';
import NotificationsPopup from './NotificationsPopup';
import UserPopup from '../UserPopup';
import styles from './Header.module.css';
import styles from './Header.module.scss';
const Header = React.memo(
({

View File

@@ -1,58 +0,0 @@
.item:before {
background: none !important;
}
.item:hover {
background: rgba(0, 0, 0, 0.32) !important;
}
.logo {
color: #fff !important;
flex: 0 0 auto;
font-size: 20px;
font-weight: bold;
letter-spacing: 3.5px;
line-height: 50px;
padding: 0 16px;
text-transform: uppercase;
width: 130px;
}
.logo:before {
background: none !important;
}
.menu {
background: transparent !important;
border: none !important;
border-radius: 0 !important;
box-shadow: none !important;
color: #fff !important;
flex: 1 1 auto;
height: 50px;
margin: 0 !important;
width: 100%;
z-index: 1;
}
.notification {
background: #eb5a46;
border-radius: 8px;
color: #fff;
display: inline-block;
font-size: 14px;
font-weight: bold;
height: 16px;
line-height: 16px;
position: absolute;
right: 8px;
text-align: center;
top: 8px;
width: 16px;
}
.wrapper {
background: rgba(0, 0, 0, 0.24);
display: flex;
flex: 0 0 auto;
}

View File

@@ -0,0 +1,62 @@
:global(#app) {
.item {
&:before {
background: none;
}
&:hover {
background: rgba(0, 0, 0, 0.32);
}
}
.logo {
color: #fff;
flex: 0 0 auto;
font-size: 20px;
font-weight: bold;
letter-spacing: 3.5px;
line-height: 50px;
padding: 0 16px;
text-transform: uppercase;
width: 130px;
&:before {
background: none;
}
}
.menu {
background: transparent;
border: none;
border-radius: 0;
box-shadow: none;
color: #fff;
flex: 1 1 auto;
height: 50px;
margin: 0;
width: 100%;
z-index: 1;
}
.notification {
background: #eb5a46;
border-radius: 8px;
color: #fff;
display: inline-block;
font-size: 14px;
font-weight: bold;
height: 16px;
line-height: 16px;
position: absolute;
right: 8px;
text-align: center;
top: 8px;
width: 16px;
}
.wrapper {
background: rgba(0, 0, 0, 0.24);
display: flex;
flex: 0 0 auto;
}
}

View File

@@ -10,7 +10,7 @@ import Paths from '../../constants/Paths';
import { ActionTypes } from '../../constants/Enums';
import User from '../User';
import styles from './NotificationsPopup.module.css';
import styles from './NotificationsPopup.module.scss';
const NotificationsStep = React.memo(({ items, onDelete, onClose }) => {
const [t] = useTranslation();

View File

@@ -1,45 +0,0 @@
.button {
background: transparent !important;
box-shadow: none !important;
float: right !important;
height: 20px !important;
line-height: 20px !important;
margin: 0 !important;
min-height: auto !important;
padding: 5px 0 !important;
transition: background 0.3s ease !important;
width: 20px !important;
}
.button:hover {
background: #e9e9e9 !important;
}
.content {
display: inline-block !important;
font-size: 12px;
min-height: 36px !important;
overflow: hidden;
padding: 0 4px 0 8px !important;
vertical-align: top !important;
width: calc(100% - 56px) !important;
word-break: break-word;
}
.deletedContent {
display: inline-block !important;
line-height: 20px !important;
min-height: 20px !important;
padding: 0 4px 0 8px !important;
vertical-align: top !important;
width: calc(100% - 20px) !important;
}
.wrapper {
margin: 0 -12px !important;
padding: 12px !important;
}
.wrapper:hover {
background: #f0f0f0 !important;
}

View File

@@ -0,0 +1,47 @@
:global(#app) {
.button {
background: transparent;
box-shadow: none;
float: right;
height: 20px;
line-height: 20px;
margin: 0;
min-height: auto;
padding: 5px 0;
transition: background 0.3s ease;
width: 20px;
&:hover {
background: #e9e9e9;
}
}
.content {
display: inline-block;
font-size: 12px;
min-height: 36px;
overflow: hidden;
padding: 0 4px 0 8px;
vertical-align: top;
width: calc(100% - 56px);
word-break: break-word;
}
.deletedContent {
display: inline-block;
line-height: 20px;
min-height: 20px;
padding: 0 4px 0 8px;
vertical-align: top;
width: calc(100% - 20px);
}
.wrapper {
margin: 0 -12px;
padding: 12px;
&:hover {
background: #f0f0f0;
}
}
}