examples.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. #examples {
  2. grid-row: 2;
  3. grid-column: 3;
  4. position: absolute;
  5. top:55px;
  6. right: 0;
  7. bottom: 35px;
  8. background: white;
  9. transform: translateX(380px);
  10. opacity: 0;
  11. transition: all 0.2s ease;
  12. height: calc(100% - 90px);
  13. &.visible {
  14. transform: translateX(0);
  15. opacity: 1;
  16. }
  17. &.removed {
  18. display: none;
  19. }
  20. width: 380px;
  21. display: grid;
  22. grid-template-columns: 100%;
  23. grid-template-rows: 60px 60px 1fr;
  24. overflow: hidden;
  25. #examples-header {
  26. grid-row: 1;
  27. grid-column: 1;
  28. background: #201936;
  29. color:white;
  30. font-size: 24px;
  31. display: grid;
  32. align-content: center;
  33. justify-content: center;
  34. }
  35. #examples-filter {
  36. grid-row: 2;
  37. grid-column: 1;
  38. display: grid;
  39. align-content: center;
  40. justify-content: center;
  41. #examples-filter-text {
  42. border: none;
  43. padding: 0;
  44. border-bottom: solid 1px #337ab7;
  45. background: linear-gradient(to bottom, rgba(255,255,255,0) 96%, #337ab7 4%);
  46. background-position: -1000px 0;
  47. background-size: 1000px 100%;
  48. background-repeat: no-repeat;
  49. color: black;
  50. width: 250px;
  51. &:focus {
  52. outline: none;
  53. }
  54. }
  55. }
  56. #examples-list {
  57. padding: 5px;
  58. overflow-y: auto;
  59. grid-row: 3;
  60. grid-column: 1;
  61. user-select: none;
  62. .example-category {
  63. .example-category-title {
  64. background: #3F3361;
  65. margin: 10px 0;
  66. color: white;
  67. font-size: 22px;
  68. height: 60px;
  69. display: grid;
  70. align-content: center;
  71. justify-content: center;
  72. }
  73. .example {
  74. margin-bottom: 10px;
  75. background: #ebebeb;
  76. display: grid;
  77. height: 125px;
  78. grid-template-columns: 125px 1fr;
  79. grid-template-rows: 40px 60px 25px;
  80. cursor: pointer;
  81. &:hover {
  82. outline: #3F3361 solid 2px;
  83. }
  84. &:active {
  85. transform: scale(0.95);
  86. }
  87. img {
  88. grid-row: 1 / 4;
  89. grid-column: 1 / 3;
  90. }
  91. .example-title {
  92. grid-row: 1;
  93. grid-column: 2;
  94. font-size: 16px;
  95. font-weight: bold;
  96. margin-left: 10px;
  97. }
  98. .example-description {
  99. grid-row: 2;
  100. grid-column: 2;
  101. font-size: 14px;
  102. margin-left: 10px;
  103. }
  104. .example-link {
  105. grid-row: 3;
  106. grid-column: 2;
  107. font-size: 14px;
  108. margin-left: 10px;
  109. text-decoration: underline;
  110. color: #BB464B;
  111. }
  112. }
  113. }
  114. }
  115. }
  116. @media screen and (max-width: 1024px) {
  117. #examples {
  118. top: 40px;
  119. height: calc(100% - 75px);
  120. }
  121. }