Skip to content

Commit a82df0b

Browse files
authored
Merge pull request #238 from Codebrahma/themes-module-update
Themes module update
2 parents 9456e3e + 7068ae1 commit a82df0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+948
-5267
lines changed

doc/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"scripts": {
2424
"build": "gatsby build",
2525
"develop": "gatsby develop",
26+
"serve": "rm -rf ./cache && rm -rf ./public && gatsby build && gatsby serve",
2627
"format": "prettier --write '**/*.js'",
2728
"test": "echo \"Error: no test specified\" && exit 1"
2829
},

doc/src/components/WithComponentsBar/WithComponentBar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { componentList } from '../common/componentList';
99
import Button from '../../../../lib/button';
1010
import Drawer from '../../../../lib/drawer';
1111

12-
import theme from './styles.scss';
12+
import theme from './theme.module.scss';
13+
import './styles.scss';
1314

1415
class WithComponentBar extends React.Component {
1516
componentDidUpdate(prevProps) {

doc/src/components/WithComponentsBar/styles.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,3 @@
151151
}
152152
}
153153
}
154-
155-
:local(.drawer) {
156-
padding: 0;
157-
height: calc(100% - 100px);
158-
@media only screen and (min-width: 992px) {
159-
left: 0 !important;
160-
}
161-
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:local(.drawer) {
2+
padding-left: 0 !important;
3+
padding-right: 0 !important;
4+
height: calc(100% - 100px) !important;
5+
@media only screen and (min-width: 992px) {
6+
left: 0 !important;
7+
}
8+
}

doc/src/components/documentation/Documentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { LiveProvider, LivePreview, LiveError } from 'react-live';
55

66
import * as components from '../../../../lib';
77
import match from '../../images/match.svg';
8-
import tableTheme from './tableTheme.scss';
8+
import tableTheme from './tableTheme.module.scss';
99
import componentTheme from '../common/componentData/theme.scss';
1010
import './styles.scss';
1111

doc/src/components/header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
55
import { Link } from 'gatsby';
66
import Navbar from '../../../lib/navbar';
77
import liteLogo from '../images/match.svg';
8-
import theme from './theme.scss';
8+
import theme from './theme.module.scss';
99

1010
const Header = ({ location }) => (
1111
<Navbar theme={theme} className={`navbar${location.pathname !== '/' ? ' navbar-extended' : ''}`} position="fixed" flat title={<Link to="/">React Lite UI</Link>} leftIcon={<Link to="/"><img src={liteLogo} alt="navbar-left-logo" /></Link>}>

doc/src/components/styles.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,26 @@
2828
width: 100%;
2929
background: #e09b2d
3030
}
31+
}
32+
33+
div[class*=navlinks] {
34+
a {
35+
&:hover {
36+
background: transparent;
37+
&::after {
38+
content: '';
39+
display: block;
40+
height: 3px;
41+
width: 100%;
42+
background: #e09b2d
43+
}
44+
}
45+
46+
&::after {
47+
content: '';
48+
display: block;
49+
height: 3px;
50+
width: 100%;
51+
}
52+
}
3153
}

doc/src/components/theme.scss renamed to doc/src/components/theme.module.scss

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,3 @@
2525
:local(.leftContent) {
2626
padding-left: 0.5rem;
2727
}
28-
29-
div[class*=navlinks] {
30-
a {
31-
&:hover {
32-
background: transparent;
33-
&::after {
34-
content: '';
35-
display: block;
36-
height: 3px;
37-
width: 100%;
38-
background: #e09b2d
39-
}
40-
}
41-
42-
&::after {
43-
content: '';
44-
display: block;
45-
height: 3px;
46-
width: 100%;
47-
}
48-
}
49-
}

doc/src/pages/pgTheme.module.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:local(.menu){
2+
z-index: 50;
3+
}
4+
5+
:local(.selectInput) {
6+
input {
7+
font-size: 1.06em;
8+
}
9+
border-bottom-color: #8a908c;
10+
}
11+
12+
:local(.option) {
13+
padding: 5%;
14+
}
15+
16+
:local(.border-animation) {
17+
&::after {
18+
background: #6679cc !important;
19+
}
20+
}
21+
22+
:local(.button) {
23+
background-color: transparent;
24+
&:hover {
25+
background-color: #cecaca8a;
26+
}
27+
}

0 commit comments

Comments
 (0)