Skip to content

Commit 51e382d

Browse files
authored
Merge pull request #255 from Codebrahma/site-fixes
Documentation page updates.
2 parents cf882d1 + 5da58a3 commit 51e382d

File tree

21 files changed

+143
-68
lines changed

21 files changed

+143
-68
lines changed

doc/src/components/WithComponentsBar/styles.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.with-component-bar {
33
.component-sidebar {
44
background-color: white;
5-
top: 100px;
5+
top: 11vh;
66
overflow: auto;
77
width: 200px;
88
padding-top: 25px;
@@ -29,9 +29,6 @@
2929
}
3030
&::-webkit-scrollbar {
3131
width: 0.4em;
32-
&:hover {
33-
width: 1em;
34-
}
3532
}
3633
&::-webkit-scrollbar-thumb {
3734
background-color: #2b87d7c7;

doc/src/components/WithComponentsBar/theme.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:local(.drawer) {
22
padding-left: 0 !important;
33
padding-right: 0 !important;
4-
height: calc(100% - 100px) !important;
4+
height: calc(100% - 11vh) !important;
55
@media only screen and (min-width: 992px) {
66
left: 0 !important;
77
}

doc/src/components/common/componentData/AutoComplete/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,9 @@ export const componentData = {
137137
background-color: rgba($color: chartreuse, $alpha: 0.2) !important;
138138
}
139139
}
140+
141+
:local(.item-hover) {
142+
background-color: rgba($color: chartreuse, $alpha: 0.2) !important;
143+
}
140144
`,
141145
};

doc/src/components/common/componentData/AutoComplete/theme.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@
1010
&:hover {
1111
background-color: rgba($color: chartreuse, $alpha: 0.2) !important;
1212
}
13+
}
14+
15+
:local(.item-hover) {
16+
background-color: rgba($color: chartreuse, $alpha: 0.2) !important;
1317
}

doc/src/components/common/componentData/Button/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const componentData = {
122122
this.style = {
123123
buttonContainer: {
124124
display: "grid",
125-
gridTemplateColumns: "auto auto auto",
125+
gridTemplateColumns: "repeat(auto-fill, 150px)",
126126
gridGap: 20,
127127
alignItems: "center"
128128
}
@@ -138,7 +138,7 @@ export const componentData = {
138138
<div>
139139
{ /* Preview Block-1 */ }
140140
<PreviewBlock header="Styled Buttons">
141-
<PreviewElements>
141+
<PreviewElements style={this.style.buttonContainer}>
142142
143143
{/* Styled Buttons with 'type' prop */}
144144
<Button>Primary</Button>
@@ -149,7 +149,7 @@ export const componentData = {
149149
</PreviewBlock>
150150
{ /* Preview Block-2 */ }
151151
<PreviewBlock header="Bordered Buttons">
152-
<PreviewElements>
152+
<PreviewElements style={this.style.buttonContainer}>
153153
154154
{/* Bordered or Outlined Buttons with 'bordered' prop */}
155155
<Button bordered type="info">info</Button>
@@ -160,7 +160,7 @@ export const componentData = {
160160
</PreviewBlock>
161161
{ /* Preview Block-3 */ }
162162
<PreviewBlock header="Borderless Buttons">
163-
<PreviewElements>
163+
<PreviewElements style={this.style.buttonContainer}>
164164
165165
{/* Borderless buttons with 'borderless' prop */}
166166
<Button type="primary" borderless>Primary</Button>
@@ -171,7 +171,7 @@ export const componentData = {
171171
</PreviewBlock>
172172
{ /* Preview Block-4 */ }
173173
<PreviewBlock header="Flat Buttons">
174-
<PreviewElements>
174+
<PreviewElements style={this.style.buttonContainer}>
175175
176176
{/* No box shadow with 'flat' prop */}
177177
<Button type="success" flat>Success</Button>
@@ -182,7 +182,7 @@ export const componentData = {
182182
</PreviewBlock>
183183
{ /* Preview Block-5 */}
184184
<PreviewBlock header="Buttons with icons and text">
185-
<PreviewElements>
185+
<PreviewElements style={this.style.buttonContainer}>
186186
187187
{/* Icon and text buttons with 'icon' prop */}
188188
<Button type="warning" icon="icon-left">
@@ -199,7 +199,7 @@ export const componentData = {
199199
</PreviewBlock>
200200
{ /* Preview Block-6 */ }
201201
<PreviewBlock header="Sizable Buttons">
202-
<PreviewElements>
202+
<PreviewElements style={this.style.buttonContainer}>
203203
204204
{/* Control button sizes with 'size' prop */}
205205
<Button size="small">

doc/src/components/common/componentData/MultiSelect/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,13 @@ export const componentData = {
144144
145145
:local(.option) {
146146
&:hover {
147-
background-color: rgba($color: #0b409c, $alpha: 0.4) !important;
147+
background-color: rgba($color: #73ff00, $alpha: 0.4) !important;
148148
}
149149
}
150+
151+
:local(.item-hover) {
152+
background: rgba($color: #73ff00, $alpha: 0.4) !important;
153+
}
150154
151155
:local(.selected) {
152156
div {

doc/src/components/common/componentData/MultiSelect/theme.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
}
1313
}
1414

15+
:local(.item-hover) {
16+
background: rgba($color: #73ff00, $alpha: 0.4) !important;
17+
}
18+
1519
:local(.selected) {
1620
div {
1721
background-color: #f0ece2;

doc/src/components/common/componentData/Select/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,13 @@ componentUsageTheme: `
151151
152152
:local(.option) {
153153
&:hover {
154-
background-color: rgba($color: #0b409c, $alpha: 0.4) !important;
154+
background-color: rgba($color: #73ff00, $alpha: 0.4) !important;
155155
}
156156
}
157+
158+
:local(.option-hover) {
159+
background-color: rgba($color: #73ff00, $alpha: 0.4) !important;
160+
}
157161
158162
:local(.selected) {
159163
input {

doc/src/components/common/componentData/Select/theme.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@
1616
input {
1717
color: #73ff00;
1818
}
19+
}
20+
21+
:local(.option-hover) {
22+
background-color: rgba($color: #73ff00, $alpha: 0.4) !important;
1923
}

doc/src/components/header.js

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,29 @@ import liteLogo from '../images/match.svg';
88
import theme from './theme.module.scss';
99

1010
const Header = ({ location }) => (
11-
<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>}>
12-
<Link to="/documentation" activeClassName="active-link">Documentation</Link>
13-
<Link to="/usage" activeClassName="active-link">Usage</Link>
14-
<Link to="/playground" activeClassName="active-link" >Playground</Link>
11+
<Navbar
12+
theme={theme}
13+
className={`navbar${location.pathname !== '/' ? ' navbar-extended' : ' navbar-animated'}`}
14+
position="fixed"
15+
flat
16+
title={<Link to="/">React Lite UI</Link>}
17+
leftIcon={<Link to="/"><img src={liteLogo} alt="navbar-left-logo" /></Link>}
18+
>
19+
<Link
20+
to="/documentation"
21+
activeClassName="active-link"
22+
>Documentation
23+
</Link>
24+
<Link
25+
to="/usage"
26+
activeClassName="active-link"
27+
>Usage
28+
</Link>
29+
<Link
30+
to="/playground"
31+
activeClassName="active-link"
32+
>Playground
33+
</Link>
1534
<a href="https://www.github.com/Codebrahma/react-lite-ui/" >
1635
<svg xmlns="http://www.w3.org/2000/svg" width="69" height="23" viewBox="0 0 69 23">
1736
<g fill="#FFF" fillRule="evenodd">

0 commit comments

Comments
 (0)