rep1y.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. @charset "utf-8";
  2. :root {
  3. font-size: 17px;
  4. }
  5. html {
  6. box-sizing: border-box;
  7. font-family: -apple-system, Roboto, Oxygen-Sans, Cantarell, "Helvetica Neue", sans-serif;
  8. }
  9. iframe,
  10. textarea {
  11. margin: 0;
  12. padding: 0;
  13. width: 100%;
  14. min-height: 200px;
  15. }
  16. iframe {
  17. border: 0;
  18. }
  19. textarea {
  20. border: .2px solid #888;
  21. font-size: 1rem;
  22. line-height: 1.4rem;
  23. resize: none;
  24. float: left;
  25. }
  26. .code {
  27. font-family: 'Source Code Pro', Menlo, 'Liberation Mono', 'Roboto Mono', monospace;
  28. }
  29. .editor {
  30. color: #B3B3FF;
  31. background-color: #1F2847;
  32. }
  33. .terminal {
  34. color: #B5F7FF;
  35. background-color: #131d20;
  36. }
  37. body {
  38. display: flex;
  39. justify-content: center;
  40. color: #87b8cb;
  41. background-color: #1f3c47;
  42. }
  43. main {
  44. width: 85vw;
  45. }
  46. .sketching-board {
  47. height: 100vh;
  48. }
  49. .demo {
  50. height: 75vh;
  51. }
  52. /* 550 x 736 */
  53. @media(min-width: 550px) {
  54. main {
  55. height: 100vh;
  56. display: grid;
  57. grid-template-columns: 55% 45%;
  58. grid-template-rows: 65% 35%;
  59. grid-template-areas:
  60. "board board"
  61. "framework log";
  62. }
  63. .sketching-board {
  64. grid-area: board;
  65. display: flex;
  66. height: 100%;
  67. }
  68. .demo {
  69. height: 100%;
  70. }
  71. .styling > .code {
  72. height: 95%;
  73. }
  74. .framework {
  75. grid-area: framework;
  76. }
  77. .log {
  78. grid-area: log;
  79. }
  80. }
  81. /* 960 x ? */
  82. @media(min-width: 960px) {
  83. .demo {
  84. width: 65%;
  85. }
  86. .styling {
  87. width: 35%;
  88. }
  89. }
  90. /* 1024 x 768 */
  91. @media(min-width: 1024px) {
  92. main {
  93. width: 95vw;
  94. grid-template-columns: repeat(4, 1fr);
  95. grid-template-rows: 1fr;
  96. grid-template-areas:
  97. "framework board board log";
  98. }
  99. .sketching-board {
  100. flex-direction: column;
  101. width: 100%;
  102. }
  103. .demo,
  104. .styling {
  105. width: 95%;
  106. align-self: center;
  107. }
  108. .framework > .code,
  109. .terminal {
  110. height: 100vh;
  111. }
  112. }