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

@@ -10,7 +10,7 @@ import EditEmailPopup from './EditEmailPopup';
import EditPasswordPopup from './EditPasswordPopup';
import User from '../../User';
import styles from './AccountPane.module.css';
import styles from './AccountPane.module.scss';
const AccountPane = React.memo(
({

View File

@@ -1,30 +0,0 @@
.action {
border: none;
display: inline-block;
height: 36px;
overflow: hidden;
position: relative;
transition: background 0.3s ease;
width: 100%;
}
.action:hover {
background: #e9e9e9 !important;
}
.actionButton {
background: transparent !important;
color: #6b808c !important;
font-weight: normal !important;
height: 36px;
line-height: 24px !important;
padding: 6px 12px !important;
text-align: left !important;
text-decoration: underline !important;
width: 100%;
}
.wrapper {
border: none !important;
box-shadow: none !important;
}

View File

@@ -0,0 +1,32 @@
:global(#app) {
.action {
border: none;
display: inline-block;
height: 36px;
overflow: hidden;
position: relative;
transition: background 0.3s ease;
width: 100%;
&:hover {
background: #e9e9e9;
}
}
.actionButton {
background: transparent;
color: #6b808c;
font-weight: normal;
height: 36px;
line-height: 24px;
padding: 6px 12px;
text-align: left;
text-decoration: underline;
width: 100%;
}
.wrapper {
border: none;
box-shadow: none;
}
}

View File

@@ -5,7 +5,7 @@ import { Button } from 'semantic-ui-react';
import { withPopup } from '../../../lib/popup';
import { FilePicker, Popup } from '../../../lib/custom-ui';
import styles from './EditAvatarPopup.module.css';
import styles from './EditAvatarPopup.module.scss';
const EditAvatarStep = React.memo(({ defaultValue, onUpdate, onDelete, onClose }) => {
const [t] = useTranslation();

View File

@@ -1,25 +0,0 @@
.action {
border: none;
display: inline-block;
height: 36px;
overflow: hidden;
position: relative;
transition: background 0.3s ease;
width: 100%;
}
.action:hover {
background: #e9e9e9 !important;
}
.actionButton {
background: transparent !important;
color: #6b808c !important;
font-weight: normal !important;
height: 36px;
line-height: 24px !important;
padding: 6px 12px !important;
text-align: left !important;
text-decoration: underline !important;
width: 100%;
}

View File

@@ -0,0 +1,27 @@
:global(#app) {
.action {
border: none;
display: inline-block;
height: 36px;
overflow: hidden;
position: relative;
transition: background 0.3s ease;
width: 100%;
&:hover {
background: #e9e9e9;
}
}
.actionButton {
background: transparent;
color: #6b808c;
font-weight: normal;
height: 36px;
line-height: 24px;
padding: 6px 12px;
text-align: left;
text-decoration: underline;
width: 100%;
}
}

View File

@@ -9,7 +9,7 @@ import { Input, Popup } from '../../../lib/custom-ui';
import { useForm } from '../../../hooks';
import styles from './EditEmailPopup.module.css';
import styles from './EditEmailPopup.module.scss';
const createMessage = (error) => {
if (!error) {

View File

@@ -1,10 +0,0 @@
.field {
margin-bottom: 8px;
}
.text {
color: #444444;
font-size: 12px;
font-weight: bold;
padding-bottom: 6px;
}

View File

@@ -0,0 +1,12 @@
:global(#app) {
.field {
margin-bottom: 8px;
}
.text {
color: #444444;
font-size: 12px;
font-weight: bold;
padding-bottom: 6px;
}
}

View File

@@ -7,7 +7,7 @@ import { Button, Form, Input } from 'semantic-ui-react';
import { useForm } from '../../../hooks';
import styles from './EditInformation.module.css';
import styles from './EditInformation.module.scss';
const EditInformation = React.memo(({ defaultData, onUpdate }) => {
const [t] = useTranslation();

View File

@@ -1,10 +0,0 @@
.field {
margin-bottom: 8px;
}
.text {
color: #444444;
font-size: 12px;
font-weight: bold;
padding-bottom: 6px;
}

View File

@@ -0,0 +1,12 @@
:global(#app) {
.field {
margin-bottom: 8px;
}
.text {
color: #444444;
font-size: 12px;
font-weight: bold;
padding-bottom: 6px;
}
}

View File

@@ -8,7 +8,7 @@ import { Input, Popup } from '../../../lib/custom-ui';
import { useForm } from '../../../hooks';
import styles from './EditPasswordPopup.module.css';
import styles from './EditPasswordPopup.module.scss';
const createMessage = (error) => {
if (!error) {

View File

@@ -1,3 +0,0 @@
.field {
margin-bottom: 8px;
}

View File

@@ -0,0 +1,5 @@
:global(#app) {
.field {
margin-bottom: 8px;
}
}

View File

@@ -9,7 +9,7 @@ import { Input, Popup } from '../../../lib/custom-ui';
import { useForm } from '../../../hooks';
import { isUsername } from '../../../utils/validator';
import styles from './EditUsernamePopup.module.css';
import styles from './EditUsernamePopup.module.scss';
const createMessage = (error) => {
if (!error) {

View File

@@ -1,10 +0,0 @@
.field {
margin-bottom: 8px;
}
.text {
color: #444444;
font-size: 12px;
font-weight: bold;
padding-bottom: 6px;
}

View File

@@ -0,0 +1,12 @@
:global(#app) {
.field {
margin-bottom: 8px;
}
.text {
color: #444444;
font-size: 12px;
font-weight: bold;
padding-bottom: 6px;
}
}

View File

@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import { useTranslation } from 'react-i18next';
import { Radio, Tab } from 'semantic-ui-react';
import styles from './PreferencesPane.module.css';
import styles from './PreferencesPane.module.scss';
const PreferencesPane = React.memo(({ subscribeToOwnCards, onUpdate }) => {
const [t] = useTranslation();

View File

@@ -1,4 +0,0 @@
.wrapper {
border: none !important;
box-shadow: none !important;
}

View File

@@ -0,0 +1,6 @@
:global(#app) {
.wrapper {
border: none;
box-shadow: none;
}
}