Advertisement
Guest User

css for cube.html

a guest
Mar 26th, 2021
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.15 KB | None | 0 0
  1. body {
  2.     margin: 0;
  3.     font-family: sans-serif;
  4. }
  5.  
  6. #container {
  7.     margin-left: 5%;
  8.     margin-right: 5%;
  9.     display: grid;
  10.     grid-template-columns: 90vw;
  11.     grid-template-rows: 80vw 80vw auto;
  12.     gap: 15px 10px;
  13.     grid-template-areas:
  14.       "a"
  15.       "b"
  16.       "c";
  17.   }
  18. @media only screen and (min-device-width: 768px) {
  19. #container {
  20.     margin-left: 10%;
  21.     margin-right: 10%;
  22.     margin-top: 2%;
  23.     height: 95vh;
  24.     display: grid;
  25.     grid-template-columns: minmax(300px, 30%) 70%;
  26.     grid-template-rows: 55vh auto;
  27.     gap: 15px 10px;
  28.     grid-template-areas:
  29.       "c a"
  30.       "c b";
  31.   }
  32. }
  33.  
  34. #solver {
  35.     grid-area: a;
  36.     width: 100%;
  37.     /*height: 55vh;*/
  38.     position: relative;
  39. }
  40.  
  41.  
  42. #canvas {
  43.     background-color: #AAAAAA;
  44.     width: 100%;
  45.     height: 100%;
  46.     margin: 0px;
  47.     padding: 0px;
  48.     /* fixed or static for camera controls*/
  49.     top: 0;
  50.     left: 0;
  51. }
  52.  
  53. #currentAlg {
  54.     position: absolute;
  55.     bottom: 8%;
  56.     width: 100%;
  57.     text-align: center;
  58.     background-color: rgba(255, 255, 255, 0.5);
  59. }
  60.  
  61. #currentAlg p {
  62.     font-size: large;
  63.     margin: 0;
  64.     padding: 0;
  65. }
  66.  
  67. #playbackControls {
  68.     display: grid;
  69.     grid-template-areas:
  70.       ". . . .";
  71.     width: 130px;
  72.     position: absolute;
  73.     bottom: -20px;
  74.     left: calc(50% - 65px);
  75.  
  76. }
  77.  
  78. .controlButton img {
  79.     height: 40px;
  80.     padding-top: 10px;
  81.     cursor: pointer;
  82. }
  83.  
  84. #playpause img {
  85.     height: 50px;
  86.     padding-top: 0px;
  87. }
  88.  
  89. #solution {
  90.     background-color: #AAAAAA;
  91.     height: 100%;
  92.     grid-area: b;
  93.     overflow-y: scroll;
  94. }
  95.  
  96.  
  97. #controls {
  98.     grid-area: c;
  99.     width: 100%;
  100.     position: relative;
  101. }
  102.  
  103. @media only screen and (min-device-width: 768px) {
  104.     #controls {
  105.     height:95vh;
  106.     }
  107. }
  108.  
  109. #explanation {
  110.     display: inline-block;
  111.     overflow-y: auto;
  112. }
  113.  
  114.  
  115. .currentMove {
  116.     font-weight: bold;    
  117. }
  118.  
  119. ul {
  120.     position: relative;
  121.     list-style: none;
  122.   }
  123.  
  124. .currentAlg::before {
  125.     content: '▶';
  126.     position: absolute;
  127.     left: 0;
  128.   }
  129.  
  130. #colorpicker{
  131.     width: max(300px, 90%);
  132.     display: grid;
  133.     grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  134.     grid-template-rows: auto auto auto;
  135.     gap: 1px 1px;
  136.     grid-template-areas:
  137.       ". u . . c"
  138.       "l f r b c"
  139.       ". d . . c";
  140.   }
  141.  
  142. .face {
  143.     display: grid;
  144.     grid-template-columns: 1fr 1fr 1fr;
  145.     grid-template-rows: 1fr 1fr 1fr;
  146.     gap: 0px 0px;
  147.     grid-template-areas:
  148.       ". . ."
  149.       ". . ."
  150.       ". . .";
  151. }
  152.  
  153. #upFace {
  154.     grid-area: u;
  155. }
  156. #leftFace {
  157.     grid-area: l;
  158. }
  159. #frontFace {
  160.     grid-area: f;
  161. }
  162. #rightFace {
  163.     grid-area: r;
  164. }
  165. #backFace {
  166.     grid-area: b;
  167. }
  168. #downFace {
  169.     grid-area: d;
  170. }
  171.  
  172. #button {
  173.     grid-column: 1;
  174.     grid-row: 1;
  175. }
  176.  
  177. #error {
  178.     text-align: center;
  179.     color: red;
  180. }
  181.  
  182. #colors {
  183.     grid-area: c;
  184.     display: grid;
  185.     grid-template-columns: 1fr 1fr 1fr;
  186.     grid-template-rows: 2fr 1fr 2fr 1fr 2fr 1fr 2fr 1fr 2fr 1fr 2fr 1fr;
  187.     gap: 1px 1px;
  188.     grid-template-areas:
  189.       "c . w"
  190.       ". . ."
  191.       ". . g"
  192.       ". . ."
  193.       ". . r"
  194.       ". . ."
  195.       ". . b"
  196.       ". . ."
  197.       ". . o"
  198.       ". . ."
  199.       ". . y"
  200.       ". . ."
  201. }
  202.  
  203. .square {
  204.     background-color: gray;
  205.     outline: black 1px solid;
  206.     outline-offset: -1px;
  207.     cursor: pointer;
  208.     height: 0;
  209.     padding-bottom: 100%;
  210. }
  211.  
  212. #cur {
  213.     grid-area: c;
  214. }
  215.  
  216. #white {
  217.     grid-area: w;
  218.     background-color: white;
  219. }
  220.  
  221. #f4s4 {
  222.     background-color: white;
  223.     cursor: default;
  224. }
  225.  
  226. #green {
  227.     grid-area: g;
  228.     background-color: green;
  229. }
  230.  
  231. #f0s4 {
  232.     background-color: green;
  233.     cursor: default;
  234. }
  235.  
  236. #red {
  237.     grid-area: r;
  238.     background-color: red;
  239. }
  240.  
  241. #f1s4 {
  242.     background-color: red;
  243.     cursor: default;
  244. }
  245.  
  246. #blue {
  247.     grid-area: b;
  248.     background-color: blue;
  249. }
  250.  
  251. #f2s4 {
  252.     background-color: blue;
  253.     cursor: default;
  254. }
  255.  
  256. #orange {
  257.     grid-area: o;
  258.     background-color: orange;
  259. }
  260.  
  261. #f3s4 {
  262.     background-color: orange;
  263.     cursor: default;
  264. }
  265.  
  266. #yellow {
  267.     grid-area: y;
  268.     background-color: yellow
  269. }
  270.  
  271. #f5s4 {
  272.     background-color: yellow;
  273.     cursor: default;
  274. }
  275.  
  276.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement