Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e5932a8

Browse files
Add Svg Background to PaletteList
1 parent 11ba136 commit e5932a8

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

‎react-color-palettes/src/styles/ColorBoxStyles.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default{
99
margin: "0 auto",
1010
position: "relative",
1111
cursor: "pointer",
12-
marginBottom: "-3.8px",
12+
marginBottom: "-4px",
1313
"&:hover button": {
1414
opacity: "1",
1515
transitionDuration: "0.8s",
@@ -24,7 +24,7 @@ export default{
2424
},
2525
[sizes.down("xs")]: {
2626
width: "100%",
27-
height: props => props.showLink ? "5%" : "10%",
27+
height: props => props.showLink ? "7%" : "10%",
2828
}
2929
},
3030
copyText: {

‎react-color-palettes/src/styles/DraggableColorBoxesStyles.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const styles = {
88
margin: "0 auto",
99
position: "relative",
1010
cursor: "pointer",
11-
marginBottom: "-4.8px",
11+
marginBottom: "-5px",
1212
"&:hover svg":{
1313
color: "white",
1414
transform: "scale(1.5)"

‎react-color-palettes/src/styles/PaletteListStyles.js‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
import sizes from './sizes';
2+
import bg from './bg.svg';
3+
24
export default{
35
root: {
4-
backgroundColor: "blue",
6+
backgroundColor: "#4f5b78",
57
height: "100vh",
68
display: "flex",
79
alignItems: "flex-start",
810
justifyContent: "center",
11+
backgroundImage: `url(${bg})`,
12+
backgroundRepeat: "no-repeat",
13+
backgroundSize: "cover",
14+
overflow: "scroll",
15+
"& h1":{
16+
fontSize: "1.7rem"
17+
}
918
},
1019
container: {
1120
width: "50%",
@@ -42,7 +51,7 @@ export default{
4251
},
4352
[sizes.down("xs")]:{
4453
gridTemplateColumns: "repeat(1, 100%)",
45-
gridGap: "1rem"
54+
gridGap: "1.4rem"
4655
}
4756
}
4857
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /