Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

166 rader
3.6 KiB

  1. import {
  2. container,
  3. hexToRGBAlpha,
  4. defaultFont,
  5. primaryColor,
  6. infoColor,
  7. successColor,
  8. warningColor,
  9. dangerColor,
  10. roseColor,
  11. transition,
  12. boxShadow,
  13. drawerWidth
  14. } from "assets/jss/nextjs-material-kit.js";
  15. const headerStyle = {
  16. appBar: {
  17. display: "flex",
  18. border: "0",
  19. borderRadius: "3px",
  20. padding: "0.625rem 0",
  21. marginBottom: "20px",
  22. color: "#555",
  23. width: "100%",
  24. backgroundColor: "#fff",
  25. boxShadow:
  26. "0 4px 18px 0px rgba(0, 0, 0, 0.12), 0 7px 10px -5px rgba(0, 0, 0, 0.15)",
  27. transition: "all 150ms ease 0s",
  28. alignItems: "center",
  29. flexFlow: "row nowrap",
  30. justifyContent: "flex-start",
  31. position: "relative",
  32. zIndex: "unset"
  33. },
  34. absolute: {
  35. position: "absolute",
  36. zIndex: "1100"
  37. },
  38. fixed: {
  39. position: "fixed",
  40. zIndex: "1100"
  41. },
  42. container: {
  43. ...container,
  44. minHeight: "50px",
  45. flex: "1",
  46. alignItems: "center",
  47. justifyContent: "space-between",
  48. display: "flex",
  49. flexWrap: "nowrap"
  50. },
  51. flex: {
  52. flex: 1
  53. },
  54. title: {
  55. ...defaultFont,
  56. lineHeight: "30px",
  57. fontSize: "18px",
  58. borderRadius: "3px",
  59. textTransform: "none",
  60. color: "inherit",
  61. padding: "8px 16px",
  62. letterSpacing: "unset",
  63. "&:hover,&:focus": {
  64. color: "inherit",
  65. background: "transparent"
  66. }
  67. },
  68. appResponsive: {
  69. margin: "20px 10px"
  70. },
  71. primary: {
  72. backgroundColor: primaryColor,
  73. color: "#FFFFFF",
  74. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${hexToRGBAlpha(
  75. primaryColor,
  76. 0.46
  77. )}`
  78. },
  79. info: {
  80. backgroundColor: infoColor,
  81. color: "#FFFFFF",
  82. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${hexToRGBAlpha(
  83. infoColor,
  84. 0.46
  85. )}`
  86. },
  87. success: {
  88. backgroundColor: successColor,
  89. color: "#FFFFFF",
  90. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${hexToRGBAlpha(
  91. successColor,
  92. 0.46
  93. )}`
  94. },
  95. warning: {
  96. backgroundColor: warningColor,
  97. color: "#FFFFFF",
  98. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${hexToRGBAlpha(
  99. warningColor,
  100. 0.46
  101. )}`
  102. },
  103. danger: {
  104. backgroundColor: dangerColor,
  105. color: "#FFFFFF",
  106. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${hexToRGBAlpha(
  107. dangerColor,
  108. 0.46
  109. )}`
  110. },
  111. rose: {
  112. backgroundColor: roseColor,
  113. color: "#FFFFFF",
  114. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${hexToRGBAlpha(
  115. roseColor,
  116. 0.46
  117. )}`
  118. },
  119. transparent: {
  120. backgroundColor: "transparent !important",
  121. boxShadow: "none",
  122. paddingTop: "25px",
  123. color: "#FFFFFF"
  124. },
  125. dark: {
  126. color: "#FFFFFF",
  127. backgroundColor: "#212121 !important",
  128. boxShadow:
  129. "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px rgba(33, 33, 33, 0.46)"
  130. },
  131. white: {
  132. border: "0",
  133. padding: "0.625rem 0",
  134. marginBottom: "20px",
  135. color: "#555",
  136. backgroundColor: "#fff !important",
  137. boxShadow:
  138. "0 4px 18px 0px rgba(0, 0, 0, 0.12), 0 7px 10px -5px rgba(0, 0, 0, 0.15)"
  139. },
  140. drawerPaper: {
  141. border: "none",
  142. bottom: "0",
  143. transitionProperty: "top, bottom, width",
  144. transitionDuration: ".2s, .2s, .35s",
  145. transitionTimingFunction: "linear, linear, ease",
  146. width: drawerWidth,
  147. ...boxShadow,
  148. position: "fixed",
  149. display: "block",
  150. top: "0",
  151. height: "100vh",
  152. right: "0",
  153. left: "auto",
  154. visibility: "visible",
  155. overflowY: "visible",
  156. borderTop: "none",
  157. textAlign: "left",
  158. paddingRight: "0px",
  159. paddingLeft: "0",
  160. ...transition
  161. }
  162. };
  163. export default headerStyle;