-
-
Notifications
You must be signed in to change notification settings - Fork 653
Expand file tree
/
Copy pathstyles.js
More file actions
40 lines (38 loc) · 1.17 KB
/
styles.js
File metadata and controls
40 lines (38 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { darken } from 'polished';
export default function buttonStyles(classPrefix, variables, includeStyles) {
if (includeStyles) {
return {
button: {
background: variables.shepherdThemePrimary,
borderRadius: variables.shepherdButtonBorderRadius,
border: 0,
color: variables.shepherdThemeTextPrimary,
cursor: 'pointer',
display: 'inline-block',
fontFamily: 'inherit',
fontSize: '0.8em',
letterSpacing: '0.1em',
lineHeight: '1em',
marginRight: '0.5em',
padding: '0.75em 2em',
textTransform: 'uppercase',
transition: 'all 0.5s ease',
verticalAlign: 'middle',
'&:hover': {
background: darken(0.1, variables.shepherdThemePrimary)
},
[`&.${classPrefix}shepherd-button-secondary`]: {
background: variables.shepherdThemeSecondary,
color: variables.shepherdThemeTextSecondary,
'&:hover': {
background: darken(0.1, variables.shepherdThemeSecondary),
color: darken(0.1, variables.shepherdThemeTextSecondary)
}
}
}
};
}
return {
button: {}
};
}