home.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. #demo-window {
  2. background-color: #f0ede2;
  3. margin-bottom: 16px;
  4. border-radius: 5px;
  5. overflow: hidden;
  6. }
  7. .animated-transition {
  8. transition: all 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
  9. }
  10. /* Slide view. */
  11. #demo-container {
  12. transform: translateX(0);
  13. width: 500%;
  14. }
  15. .demo-wrapper {
  16. width: 20%;
  17. float: left;
  18. }
  19. /* Expanded view. */
  20. #demo-container.expanded {
  21. width: 100%;
  22. }
  23. #demo-container.expanded .demo-wrapper {
  24. width: 100%;
  25. }
  26. /* Styles for the demos. */
  27. .demo:after {
  28. content: "";
  29. display: table;
  30. clear: both;
  31. }
  32. .demo {
  33. padding: 16px;
  34. }
  35. .demo-col {
  36. box-sizing: border-box;
  37. width: 100%;
  38. height: 100%;
  39. float: left;
  40. }
  41. .demo-ttyshot {
  42. text-align: center;
  43. }
  44. .demo-ttyshot .ttyshot {
  45. text-align: left;
  46. }
  47. .demo-description {
  48. padding: 16px 16px 0;
  49. }
  50. .demo-ttyshot {
  51. padding-top: 16px;
  52. }
  53. @media screen and (min-width: 1024px) {
  54. .demo-ttyshot {
  55. width: 60%;
  56. }
  57. .demo-description {
  58. width: 40%;
  59. }
  60. .animated-transition {
  61. transition-duration: 400ms;
  62. }
  63. }
  64. .demo-description h2 {
  65. margin-top: 0;
  66. }
  67. .demo-col p {
  68. margin-top: 16px;
  69. margin-bottom: 0;
  70. }
  71. ul#demo-switcher {
  72. display: inline;
  73. margin: 0;
  74. }
  75. ul#demo-switcher > li {
  76. list-style: none;
  77. display: inline-block;
  78. }
  79. ul#demo-switcher > li > a {
  80. color: black;
  81. padding: 4px 14px;
  82. }
  83. ul#demo-switcher > li > a.current, ul#demo-switcher > li > a.current:hover {
  84. color: white;
  85. background-color: black;
  86. }
  87. ul#demo-switcher > li > a:hover {
  88. background-color: #ccc;
  89. cursor: pointer;
  90. }
  91. /* Styles for the body layout. */
  92. @media screen and (min-width: 800px) {
  93. #columns {
  94. display: flex;
  95. }
  96. .column {
  97. flex: 1;
  98. }
  99. .column:first-child {
  100. margin-right: 24px;
  101. }
  102. }
  103. /* Overriding default styles */
  104. .article h1 {
  105. border-bottom: none;
  106. padding-bottom: 0;
  107. }
  108. .article li > p {
  109. margin-top: 0.5em;
  110. margin-bottom: 0.5em;
  111. }
  112. /**
  113. * Dark theme.
  114. */
  115. .dark #demo-window {
  116. background-color: #101818;
  117. }
  118. .dark ul#demo-switcher > li > a {
  119. color: #eee;
  120. }
  121. .dark ul#demo-switcher > li > a.current, .dark ul#demo-switcher > li > a.current:hover {
  122. color: black;
  123. background-color: #eee;
  124. }
  125. .dark ul#demo-switcher > li > a:hover {
  126. background-color: #444;
  127. }