Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

158 wiersze
3.2 KiB

  1. import {
  2. hexToRGBAlpha,
  3. roseColor,
  4. primaryColor,
  5. infoColor,
  6. successColor,
  7. warningColor,
  8. dangerColor
  9. } from "assets/jss/nextjs-material-kit.js";
  10. const navPillsStyle = theme => ({
  11. root: {
  12. marginTop: "20px",
  13. paddingLeft: "0",
  14. marginBottom: "0",
  15. overflow: "visible !important",
  16. lineHeight: "24px",
  17. textTransform: "uppercase",
  18. fontSize: "12px",
  19. fontWeight: "500",
  20. position: "relative",
  21. display: "block",
  22. color: "inherit"
  23. },
  24. flexContainer: {
  25. [theme.breakpoints.down("xs")]: {
  26. display: "flex",
  27. flexWrap: "wrap"
  28. }
  29. },
  30. displayNone: {
  31. display: "none !important"
  32. },
  33. fixed: {
  34. overflow: "visible !important"
  35. },
  36. horizontalDisplay: {
  37. display: "block"
  38. },
  39. pills: {
  40. float: "left",
  41. position: "relative",
  42. display: "block",
  43. borderRadius: "30px",
  44. minWidth: "100px",
  45. textAlign: "center",
  46. transition: "all .3s",
  47. padding: "10px 15px",
  48. color: "#555555",
  49. height: "auto",
  50. opacity: "1",
  51. maxWidth: "100%",
  52. margin: "0 5px"
  53. },
  54. pillsWithIcons: {
  55. borderRadius: "4px"
  56. },
  57. tabIcon: {
  58. width: "30px",
  59. height: "30px",
  60. display: "block",
  61. margin: "15px 0 !important",
  62. "&, & *": {
  63. letterSpacing: "normal !important"
  64. }
  65. },
  66. horizontalPills: {
  67. width: "100%",
  68. float: "none !important",
  69. "& + button": {
  70. margin: "10px 0"
  71. }
  72. },
  73. contentWrapper: {
  74. marginTop: "20px"
  75. },
  76. primary: {
  77. "&,&:hover": {
  78. color: "#FFFFFF",
  79. backgroundColor: infoColor,
  80. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px ${hexToRGBAlpha(
  81. primaryColor,
  82. 0.4
  83. )}`
  84. }
  85. },
  86. info: {
  87. "&,&:hover": {
  88. color: "#FFFFFF",
  89. backgroundColor: infoColor,
  90. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px ${hexToRGBAlpha(
  91. infoColor,
  92. 0.4
  93. )}`
  94. }
  95. },
  96. success: {
  97. "&,&:hover": {
  98. color: "#FFFFFF",
  99. backgroundColor: successColor,
  100. boxShadow: `0 2px 2px 0 ${hexToRGBAlpha(
  101. successColor,
  102. 0.14
  103. )}, 0 3px 1px -2px ${hexToRGBAlpha(
  104. successColor,
  105. 0.2
  106. )}, 0 1px 5px 0 ${hexToRGBAlpha(successColor, 0.12)}`
  107. }
  108. },
  109. warning: {
  110. "&,&:hover": {
  111. color: "#FFFFFF",
  112. backgroundColor: warningColor,
  113. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px ${hexToRGBAlpha(
  114. warningColor,
  115. 0.4
  116. )}`
  117. }
  118. },
  119. danger: {
  120. "&,&:hover": {
  121. color: "#FFFFFF",
  122. backgroundColor: dangerColor,
  123. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px ${hexToRGBAlpha(
  124. dangerColor,
  125. 0.4
  126. )}`
  127. }
  128. },
  129. rose: {
  130. "&,&:hover": {
  131. color: "#FFFFFF",
  132. backgroundColor: roseColor,
  133. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px ${hexToRGBAlpha(
  134. roseColor,
  135. 0.4
  136. )}`
  137. }
  138. },
  139. alignCenter: {
  140. alignItems: "center",
  141. justifyContent: "center"
  142. },
  143. tabWrapper: {
  144. color: "inherit",
  145. position: "relative",
  146. fontSize: "12px",
  147. lineHeight: "24px",
  148. fontWeight: "500",
  149. textTransform: "uppercase",
  150. "&,& *": {
  151. letterSpacing: "normal"
  152. }
  153. }
  154. });
  155. export default navPillsStyle;