How to use height method in storybook-root

Best JavaScript code snippet using storybook-root

GameContainer.js

Source:GameContainer.js Github

copy

Full Screen

1// @flow2import React from 'react';3import type { Node } from 'react';4type Props = {5 children: Node,6 outer?: Node7};8const GameContainer = ({ children, outer }: Props) => {9 return (10 <div className="outer">11 <div className="container">{children}</div>12 {outer}13 <style jsx global>{`14 .outer {15 position: absolute;16 top: 0;17 left: 0;18 width: 100vw;19 height: 100vh;20 }21 .container {22 position: absolute;23 top: 50%;24 left: 50%;25 transform: translate(-50%, -50%);26 font-size: 3px;27 }28 .container {29 width: 80px;30 height: 100px;31 margin-top: -10px;32 font-size: 3px;33 }34 .controls {35 display: block;36 }37 .ctrl-side {38 display: none;39 }40 @media (min-width: 120px) and (min-height: 120px) {41 .container {42 width: 80px;43 height: 100px;44 margin-top: 0;45 font-size: 3px;46 }47 .controls {48 display: none;49 }50 .ctrl-side {51 display: block;52 width: 20px;53 height: 40px;54 }55 }56 @media (min-width: 96px) and (min-height: 144px) {57 .container {58 width: 96px;59 height: 120px;60 margin-top: -12px;61 font-size: 3px;62 }63 .controls {64 display: block;65 }66 .ctrl-side {67 display: none;68 }69 }70 @media (min-width: 144px) and (min-height: 144px) {71 .container {72 width: 96px;73 height: 120px;74 margin-top: 0;75 font-size: 3px;76 }77 .controls {78 display: none;79 }80 .ctrl-side {81 display: block;82 width: 24px;83 height: 48px;84 }85 }86 @media (min-width: 112px) and (min-height: 168px) {87 .container {88 width: 112px;89 height: 140px;90 margin-top: -14px;91 font-size: 4px;92 }93 .controls {94 display: block;95 }96 .ctrl-side {97 display: none;98 }99 }100 @media (min-width: 168px) and (min-height: 168px) {101 .container {102 width: 112px;103 height: 140px;104 margin-top: 0;105 font-size: 4px;106 }107 .controls {108 display: none;109 }110 .ctrl-side {111 display: block;112 width: 28px;113 height: 56px;114 }115 }116 @media (min-width: 128px) and (min-height: 192px) {117 .container {118 width: 128px;119 height: 160px;120 margin-top: -16px;121 font-size: 4px;122 }123 .controls {124 display: block;125 }126 .ctrl-side {127 display: none;128 }129 }130 @media (min-width: 192px) and (min-height: 192px) {131 .container {132 width: 128px;133 height: 160px;134 margin-top: 0;135 font-size: 4px;136 }137 .controls {138 display: none;139 }140 .ctrl-side {141 display: block;142 width: 32px;143 height: 64px;144 }145 }146 @media (min-width: 144px) and (min-height: 216px) {147 .container {148 width: 144px;149 height: 180px;150 margin-top: -18px;151 font-size: 5px;152 }153 .controls {154 display: block;155 }156 .ctrl-side {157 display: none;158 }159 }160 @media (min-width: 216px) and (min-height: 216px) {161 .container {162 width: 144px;163 height: 180px;164 margin-top: 0;165 font-size: 5px;166 }167 .controls {168 display: none;169 }170 .ctrl-side {171 display: block;172 width: 36px;173 height: 72px;174 }175 }176 @media (min-width: 160px) and (min-height: 240px) {177 .container {178 width: 160px;179 height: 200px;180 margin-top: -20px;181 font-size: 6px;182 }183 .controls {184 display: block;185 }186 .ctrl-side {187 display: none;188 }189 }190 @media (min-width: 240px) and (min-height: 240px) {191 .container {192 width: 160px;193 height: 200px;194 margin-top: 0;195 font-size: 6px;196 }197 .controls {198 display: none;199 }200 .ctrl-side {201 display: block;202 width: 40px;203 height: 80px;204 }205 }206 @media (min-width: 176px) and (min-height: 264px) {207 .container {208 width: 176px;209 height: 220px;210 margin-top: -22px;211 font-size: 6px;212 }213 .controls {214 display: block;215 }216 .ctrl-side {217 display: none;218 }219 }220 @media (min-width: 288px) and (min-height: 264px) {221 .container {222 width: 192px;223 height: 240px;224 margin-top: 0;225 font-size: 7px;226 }227 .controls {228 display: none;229 }230 .ctrl-side {231 display: block;232 width: 48px;233 height: 96px;234 }235 }236 @media (min-width: 192px) and (min-height: 288px) {237 .container {238 width: 192px;239 height: 240px;240 margin-top: -24px;241 font-size: 7px;242 }243 .controls {244 display: block;245 }246 .ctrl-side {247 display: none;248 }249 }250 @media (min-width: 312px) and (min-height: 288px) {251 .container {252 width: 208px;253 height: 260px;254 margin-top: 0;255 font-size: 8px;256 }257 .controls {258 display: none;259 }260 .ctrl-side {261 display: block;262 width: 52px;263 height: 104px;264 }265 }266 @media (min-width: 208px) and (min-height: 312px) {267 .container {268 width: 208px;269 height: 260px;270 margin-top: -26px;271 font-size: 8px;272 }273 .controls {274 display: block;275 }276 .ctrl-side {277 display: none;278 }279 }280 @media (min-width: 336px) and (min-height: 312px) {281 .container {282 width: 224px;283 height: 280px;284 margin-top: 0;285 font-size: 8px;286 }287 .controls {288 display: none;289 }290 .ctrl-side {291 display: block;292 width: 56px;293 height: 112px;294 }295 }296 @media (min-width: 224px) and (min-height: 336px) {297 .container {298 width: 224px;299 height: 280px;300 margin-top: -28px;301 font-size: 8px;302 }303 .controls {304 display: block;305 }306 .ctrl-side {307 display: none;308 }309 }310 @media (min-width: 360px) and (min-height: 336px) {311 .container {312 width: 240px;313 height: 300px;314 margin-top: 0;315 font-size: 9px;316 }317 .controls {318 display: none;319 }320 .ctrl-side {321 display: block;322 width: 60px;323 height: 120px;324 }325 }326 @media (min-width: 240px) and (min-height: 360px) {327 .container {328 width: 240px;329 height: 300px;330 margin-top: -30px;331 font-size: 9px;332 }333 .controls {334 display: block;335 }336 .ctrl-side {337 display: none;338 }339 }340 @media (min-width: 384px) and (min-height: 360px) {341 .container {342 width: 256px;343 height: 320px;344 margin-top: 0;345 font-size: 9px;346 }347 .controls {348 display: none;349 }350 .ctrl-side {351 display: block;352 width: 64px;353 height: 128px;354 }355 }356 @media (min-width: 256px) and (min-height: 384px) {357 .container {358 width: 256px;359 height: 320px;360 margin-top: -32px;361 font-size: 9px;362 }363 .controls {364 display: block;365 }366 .ctrl-side {367 display: none;368 }369 }370 @media (min-width: 408px) and (min-height: 384px) {371 .container {372 width: 272px;373 height: 340px;374 margin-top: 0;375 font-size: 10px;376 }377 .controls {378 display: none;379 }380 .ctrl-side {381 display: block;382 width: 68px;383 height: 136px;384 }385 }386 @media (min-width: 272px) and (min-height: 408px) {387 .container {388 width: 272px;389 height: 340px;390 margin-top: -34px;391 font-size: 10px;392 }393 .controls {394 display: block;395 }396 .ctrl-side {397 display: none;398 }399 }400 @media (min-width: 432px) and (min-height: 408px) {401 .container {402 width: 288px;403 height: 360px;404 margin-top: 0;405 font-size: 11px;406 }407 .controls {408 display: none;409 }410 .ctrl-side {411 display: block;412 width: 72px;413 height: 144px;414 }415 }416 @media (min-width: 288px) and (min-height: 432px) {417 .container {418 width: 288px;419 height: 360px;420 margin-top: -36px;421 font-size: 11px;422 }423 .controls {424 display: block;425 }426 .ctrl-side {427 display: none;428 }429 }430 @media (min-width: 456px) and (min-height: 432px) {431 .container {432 width: 304px;433 height: 380px;434 margin-top: 0;435 font-size: 11px;436 }437 .controls {438 display: none;439 }440 .ctrl-side {441 display: block;442 width: 76px;443 height: 152px;444 }445 }446 @media (min-width: 304px) and (min-height: 456px) {447 .container {448 width: 304px;449 height: 380px;450 margin-top: -38px;451 font-size: 11px;452 }453 .controls {454 display: block;455 }456 .ctrl-side {457 display: none;458 }459 }460 @media (min-width: 480px) and (min-height: 456px) {461 .container {462 width: 320px;463 height: 400px;464 margin-top: 0;465 font-size: 12px;466 }467 .controls {468 display: none;469 }470 .ctrl-side {471 display: block;472 width: 80px;473 height: 160px;474 }475 }476 @media (min-width: 320px) and (min-height: 480px) {477 .container {478 width: 320px;479 height: 400px;480 margin-top: -40px;481 font-size: 12px;482 }483 .controls {484 display: block;485 }486 .ctrl-side {487 display: none;488 }489 }490 @media (min-width: 504px) and (min-height: 480px) {491 .container {492 width: 336px;493 height: 420px;494 margin-top: 0;495 font-size: 12px;496 }497 .controls {498 display: none;499 }500 .ctrl-side {501 display: block;502 width: 84px;503 height: 168px;504 }505 }506 @media (min-width: 336px) and (min-height: 504px) {507 .container {508 width: 336px;509 height: 420px;510 margin-top: -42px;511 font-size: 12px;512 }513 .controls {514 display: block;515 }516 .ctrl-side {517 display: none;518 }519 }520 @media (min-width: 528px) and (min-height: 504px) {521 .container {522 width: 352px;523 height: 440px;524 margin-top: 0;525 font-size: 13px;526 }527 .controls {528 display: none;529 }530 .ctrl-side {531 display: block;532 width: 88px;533 height: 176px;534 }535 }536 @media (min-width: 352px) and (min-height: 528px) {537 .container {538 width: 352px;539 height: 440px;540 margin-top: -44px;541 font-size: 13px;542 }543 .controls {544 display: block;545 }546 .ctrl-side {547 display: none;548 }549 }550 @media (min-width: 576px) and (min-height: 528px) {551 .container {552 width: 384px;553 height: 480px;554 margin-top: 0;555 font-size: 14px;556 }557 .controls {558 display: none;559 }560 .ctrl-side {561 display: block;562 width: 96px;563 height: 192px;564 }565 }566 @media (min-width: 368px) and (min-height: 552px) {567 .container {568 width: 368px;569 height: 460px;570 margin-top: -46px;571 font-size: 14px;572 }573 .controls {574 display: block;575 }576 .ctrl-side {577 display: none;578 }579 }580 @media (min-width: 600px) and (min-height: 552px) {581 .container {582 width: 400px;583 height: 500px;584 margin-top: 0;585 font-size: 15px;586 }587 .controls {588 display: none;589 }590 .ctrl-side {591 display: block;592 width: 100px;593 height: 200px;594 }595 }596 @media (min-width: 384px) and (min-height: 576px) {597 .container {598 width: 384px;599 height: 480px;600 margin-top: -48px;601 font-size: 14px;602 }603 .controls {604 display: block;605 }606 .ctrl-side {607 display: none;608 }609 }610 @media (min-width: 624px) and (min-height: 576px) {611 .container {612 width: 416px;613 height: 520px;614 margin-top: 0;615 font-size: 16px;616 }617 .controls {618 display: none;619 }620 .ctrl-side {621 display: block;622 width: 104px;623 height: 208px;624 }625 }626 @media (min-width: 400px) and (min-height: 600px) {627 .container {628 width: 400px;629 height: 500px;630 margin-top: -50px;631 font-size: 15px;632 }633 .controls {634 display: block;635 }636 .ctrl-side {637 display: none;638 }639 }640 @media (min-width: 648px) and (min-height: 600px) {641 .container {642 width: 432px;643 height: 540px;644 margin-top: 0;645 font-size: 16px;646 }647 .controls {648 display: none;649 }650 .ctrl-side {651 display: block;652 width: 108px;653 height: 216px;654 }655 }656 @media (min-width: 416px) and (min-height: 624px) {657 .container {658 width: 416px;659 height: 520px;660 margin-top: -52px;661 font-size: 16px;662 }663 .controls {664 display: block;665 }666 .ctrl-side {667 display: none;668 }669 }670 @media (min-width: 672px) and (min-height: 624px) {671 .container {672 width: 448px;673 height: 560px;674 margin-top: 0;675 font-size: 17px;676 }677 .controls {678 display: none;679 }680 .ctrl-side {681 display: block;682 width: 112px;683 height: 224px;684 }685 }686 @media (min-width: 432px) and (min-height: 648px) {687 .container {688 width: 432px;689 height: 540px;690 margin-top: -54px;691 font-size: 16px;692 }693 .controls {694 display: block;695 }696 .ctrl-side {697 display: none;698 }699 }700 @media (min-width: 696px) and (min-height: 648px) {701 .container {702 width: 464px;703 height: 580px;704 margin-top: 0;705 font-size: 17px;706 }707 .controls {708 display: none;709 }710 .ctrl-side {711 display: block;712 width: 116px;713 height: 232px;714 }715 }716 @media (min-width: 448px) and (min-height: 672px) {717 .container {718 width: 448px;719 height: 560px;720 margin-top: -56px;721 font-size: 17px;722 }723 .controls {724 display: block;725 }726 .ctrl-side {727 display: none;728 }729 }730 @media (min-width: 720px) and (min-height: 672px) {731 .container {732 width: 480px;733 height: 600px;734 margin-top: 0;735 font-size: 18px;736 }737 .controls {738 display: none;739 }740 .ctrl-side {741 display: block;742 width: 120px;743 height: 240px;744 }745 }746 @media (min-width: 464px) and (min-height: 696px) {747 .container {748 width: 464px;749 height: 580px;750 margin-top: -58px;751 font-size: 17px;752 }753 .controls {754 display: block;755 }756 .ctrl-side {757 display: none;758 }759 }760 @media (min-width: 744px) and (min-height: 696px) {761 .container {762 width: 496px;763 height: 620px;764 margin-top: 0;765 font-size: 19px;766 }767 .controls {768 display: none;769 }770 .ctrl-side {771 display: block;772 width: 124px;773 height: 248px;774 }775 }776 @media (min-width: 480px) and (min-height: 720px) {777 .container {778 width: 480px;779 height: 600px;780 margin-top: -60px;781 font-size: 18px;782 }783 .controls {784 display: block;785 }786 .ctrl-side {787 display: none;788 }789 }790 @media (min-width: 768px) and (min-height: 720px) {791 .container {792 width: 512px;793 height: 640px;794 margin-top: 0;795 font-size: 19px;796 }797 .controls {798 display: none;799 }800 .ctrl-side {801 display: block;802 width: 128px;803 height: 256px;804 }805 }806 @media (min-width: 496px) and (min-height: 744px) {807 .container {808 width: 496px;809 height: 620px;810 margin-top: -62px;811 font-size: 19px;812 }813 .controls {814 display: block;815 }816 .ctrl-side {817 display: none;818 }819 }820 @media (min-width: 792px) and (min-height: 744px) {821 .container {822 width: 528px;823 height: 660px;824 margin-top: 0;825 font-size: 20px;826 }827 .controls {828 display: none;829 }830 .ctrl-side {831 display: block;832 width: 132px;833 height: 264px;834 }835 }836 @media (min-width: 512px) and (min-height: 768px) {837 .container {838 width: 512px;839 height: 640px;840 margin-top: -64px;841 font-size: 19px;842 }843 .controls {844 display: block;845 }846 .ctrl-side {847 display: none;848 }849 }850 @media (min-width: 816px) and (min-height: 768px) {851 .container {852 width: 544px;853 height: 680px;854 margin-top: 0;855 font-size: 20px;856 }857 .controls {858 display: none;859 }860 .ctrl-side {861 display: block;862 width: 136px;863 height: 272px;864 }865 }866 @media (min-width: 528px) and (min-height: 792px) {867 .container {868 width: 528px;869 height: 660px;870 margin-top: -66px;871 font-size: 20px;872 }873 .controls {874 display: block;875 }876 .ctrl-side {877 display: none;878 }879 }880 @media (min-width: 864px) and (min-height: 792px) {881 .container {882 width: 576px;883 height: 720px;884 margin-top: 0;885 font-size: 22px;886 }887 .controls {888 display: none;889 }890 .ctrl-side {891 display: block;892 width: 144px;893 height: 288px;894 }895 }896 @media (min-width: 544px) and (min-height: 816px) {897 .container {898 width: 544px;899 height: 680px;900 margin-top: -68px;901 font-size: 20px;902 }903 .controls {904 display: block;905 }906 .ctrl-side {907 display: none;908 }909 }910 @media (min-width: 888px) and (min-height: 816px) {911 .container {912 width: 592px;913 height: 740px;914 margin-top: 0;915 font-size: 22px;916 }917 .controls {918 display: none;919 }920 .ctrl-side {921 display: block;922 width: 148px;923 height: 296px;924 }925 }926 @media (min-width: 560px) and (min-height: 840px) {927 .container {928 width: 560px;929 height: 700px;930 margin-top: -70px;931 font-size: 21px;932 }933 .controls {934 display: block;935 }936 .ctrl-side {937 display: none;938 }939 }940 @media (min-width: 912px) and (min-height: 840px) {941 .container {942 width: 608px;943 height: 760px;944 margin-top: 0;945 font-size: 23px;946 }947 .controls {948 display: none;949 }950 .ctrl-side {951 display: block;952 width: 152px;953 height: 304px;954 }955 }956 @media (min-width: 576px) and (min-height: 864px) {957 .container {958 width: 576px;959 height: 720px;960 margin-top: -72px;961 font-size: 22px;962 }963 .controls {964 display: block;965 }966 .ctrl-side {967 display: none;968 }969 }970 @media (min-width: 936px) and (min-height: 864px) {971 .container {972 width: 624px;973 height: 780px;974 margin-top: 0;975 font-size: 24px;976 }977 .controls {978 display: none;979 }980 .ctrl-side {981 display: block;982 width: 156px;983 height: 312px;984 }985 }986 @media (min-width: 592px) and (min-height: 888px) {987 .container {988 width: 592px;989 height: 740px;990 margin-top: -74px;991 font-size: 22px;992 }993 .controls {994 display: block;995 }996 .ctrl-side {997 display: none;998 }999 }1000 @media (min-width: 960px) and (min-height: 888px) {1001 .container {1002 width: 640px;1003 height: 800px;1004 margin-top: 0;1005 font-size: 24px;1006 }1007 .controls {1008 display: none;1009 }1010 .ctrl-side {1011 display: block;1012 width: 160px;1013 height: 320px;1014 }1015 }1016 @media (min-width: 608px) and (min-height: 912px) {1017 .container {1018 width: 608px;1019 height: 760px;1020 margin-top: -76px;1021 font-size: 23px;1022 }1023 .controls {1024 display: block;1025 }1026 .ctrl-side {1027 display: none;1028 }1029 }1030 @media (min-width: 984px) and (min-height: 912px) {1031 .container {1032 width: 656px;1033 height: 820px;1034 margin-top: 0;1035 font-size: 25px;1036 }1037 .controls {1038 display: none;1039 }1040 .ctrl-side {1041 display: block;1042 width: 164px;1043 height: 328px;1044 }1045 }1046 @media (min-width: 624px) and (min-height: 936px) {1047 .container {1048 width: 624px;1049 height: 780px;1050 margin-top: -78px;1051 font-size: 24px;1052 }1053 .controls {1054 display: block;1055 }1056 .ctrl-side {1057 display: none;1058 }1059 }1060 @media (min-width: 1008px) and (min-height: 936px) {1061 .container {1062 width: 672px;1063 height: 840px;1064 margin-top: 0;1065 font-size: 25px;1066 }1067 .controls {1068 display: none;1069 }1070 .ctrl-side {1071 display: block;1072 width: 168px;1073 height: 336px;1074 }1075 }1076 @media (min-width: 640px) and (min-height: 960px) {1077 .container {1078 width: 640px;1079 height: 800px;1080 margin-top: -80px;1081 font-size: 24px;1082 }1083 .controls {1084 display: block;1085 }1086 .ctrl-side {1087 display: none;1088 }1089 }1090 @media (min-width: 1032px) and (min-height: 960px) {1091 .container {1092 width: 688px;1093 height: 860px;1094 margin-top: 0;1095 font-size: 26px;1096 }1097 .controls {1098 display: none;1099 }1100 .ctrl-side {1101 display: block;1102 width: 172px;1103 height: 344px;1104 }1105 }1106 @media (min-width: 656px) and (min-height: 984px) {1107 .container {1108 width: 656px;1109 height: 820px;1110 margin-top: -82px;1111 font-size: 25px;1112 }1113 .controls {1114 display: block;1115 }1116 .ctrl-side {1117 display: none;1118 }1119 }1120 @media (min-width: 1056px) and (min-height: 984px) {1121 .container {1122 width: 704px;1123 height: 880px;1124 margin-top: 0;1125 font-size: 27px;1126 }1127 .controls {1128 display: none;1129 }1130 .ctrl-side {1131 display: block;1132 width: 176px;1133 height: 352px;1134 }1135 }1136 @media (min-width: 672px) and (min-height: 1008px) {1137 .container {1138 width: 672px;1139 height: 840px;1140 margin-top: -84px;1141 font-size: 25px;1142 }1143 .controls {1144 display: block;1145 }1146 .ctrl-side {1147 display: none;1148 }1149 }1150 @media (min-width: 1080px) and (min-height: 1008px) {1151 .container {1152 width: 720px;1153 height: 900px;1154 margin-top: 0;1155 font-size: 27px;1156 }1157 .controls {1158 display: none;1159 }1160 .ctrl-side {1161 display: block;1162 width: 180px;1163 height: 360px;1164 }1165 }1166 @media (min-width: 688px) and (min-height: 1032px) {1167 .container {1168 width: 688px;1169 height: 860px;1170 margin-top: -86px;1171 font-size: 26px;1172 }1173 .controls {1174 display: block;1175 }1176 .ctrl-side {1177 display: none;1178 }1179 }1180 @media (min-width: 1104px) and (min-height: 1032px) {1181 .container {1182 width: 736px;1183 height: 920px;1184 margin-top: 0;1185 font-size: 28px;1186 }1187 .controls {1188 display: none;1189 }1190 .ctrl-side {1191 display: block;1192 width: 184px;1193 height: 368px;1194 }1195 }1196 @media (min-width: 704px) and (min-height: 1056px) {1197 .container {1198 width: 704px;1199 height: 880px;1200 margin-top: -88px;1201 font-size: 27px;1202 }1203 .controls {1204 display: block;1205 }1206 .ctrl-side {1207 display: none;1208 }1209 }1210 @media (min-width: 1152px) and (min-height: 1056px) {1211 .container {1212 width: 768px;1213 height: 960px;1214 margin-top: 0;1215 font-size: 29px;1216 }1217 .controls {1218 display: none;1219 }1220 .ctrl-side {1221 display: block;1222 width: 192px;1223 height: 384px;1224 }1225 }1226 @media (min-width: 720px) and (min-height: 1080px) {1227 .container {1228 width: 720px;1229 height: 900px;1230 margin-top: -90px;1231 font-size: 27px;1232 }1233 .controls {1234 display: block;1235 }1236 .ctrl-side {1237 display: none;1238 }1239 }1240 @media (min-width: 1176px) and (min-height: 1080px) {1241 .container {1242 width: 784px;1243 height: 980px;1244 margin-top: 0;1245 font-size: 30px;1246 }1247 .controls {1248 display: none;1249 }1250 .ctrl-side {1251 display: block;1252 width: 196px;1253 height: 392px;1254 }1255 }1256 @media (min-width: 736px) and (min-height: 1104px) {1257 .container {1258 width: 736px;1259 height: 920px;1260 margin-top: -92px;1261 font-size: 28px;1262 }1263 .controls {1264 display: block;1265 }1266 .ctrl-side {1267 display: none;1268 }1269 }1270 @media (min-width: 1200px) and (min-height: 1104px) {1271 .container {1272 width: 800px;1273 height: 1000px;1274 margin-top: 0;1275 font-size: 30px;1276 }1277 .controls {1278 display: none;1279 }1280 .ctrl-side {1281 display: block;1282 width: 200px;1283 height: 400px;1284 }1285 }1286 @media (min-width: 752px) and (min-height: 1128px) {1287 .container {1288 width: 752px;1289 height: 940px;1290 margin-top: -94px;1291 font-size: 28px;1292 }1293 .controls {1294 display: block;1295 }1296 .ctrl-side {1297 display: none;1298 }1299 }1300 @media (min-width: 1224px) and (min-height: 1128px) {1301 .container {1302 width: 816px;1303 height: 1020px;1304 margin-top: 0;1305 font-size: 31px;1306 }1307 .controls {1308 display: none;1309 }1310 .ctrl-side {1311 display: block;1312 width: 204px;1313 height: 408px;1314 }1315 }1316 @media (min-width: 768px) and (min-height: 1152px) {1317 .container {1318 width: 768px;1319 height: 960px;1320 margin-top: -96px;1321 font-size: 29px;1322 }1323 .controls {1324 display: block;1325 }1326 .ctrl-side {1327 display: none;1328 }1329 }1330 @media (min-width: 1248px) and (min-height: 1152px) {1331 .container {1332 width: 832px;1333 height: 1040px;1334 margin-top: 0;1335 font-size: 32px;1336 }1337 .controls {1338 display: none;1339 }1340 .ctrl-side {1341 display: block;1342 width: 208px;1343 height: 416px;1344 }1345 }1346 @media (min-width: 784px) and (min-height: 1176px) {1347 .container {1348 width: 784px;1349 height: 980px;1350 margin-top: -98px;1351 font-size: 30px;1352 }1353 .controls {1354 display: block;1355 }1356 .ctrl-side {1357 display: none;1358 }1359 }1360 @media (min-width: 1272px) and (min-height: 1176px) {1361 .container {1362 width: 848px;1363 height: 1060px;1364 margin-top: 0;1365 font-size: 32px;1366 }1367 .controls {1368 display: none;1369 }1370 .ctrl-side {1371 display: block;1372 width: 212px;1373 height: 424px;1374 }1375 }1376 @media (min-width: 800px) and (min-height: 1200px) {1377 .container {1378 width: 800px;1379 height: 1000px;1380 margin-top: -100px;1381 font-size: 30px;1382 }1383 .controls {1384 display: block;1385 }1386 .ctrl-side {1387 display: none;1388 }1389 }1390 @media (min-width: 1296px) and (min-height: 1200px) {1391 .container {1392 width: 864px;1393 height: 1080px;1394 margin-top: 0;1395 font-size: 33px;1396 }1397 .controls {1398 display: none;1399 }1400 .ctrl-side {1401 display: block;1402 width: 216px;1403 height: 432px;1404 }1405 }1406 @media (min-width: 816px) and (min-height: 1224px) {1407 .container {1408 width: 816px;1409 height: 1020px;1410 margin-top: -102px;1411 font-size: 31px;1412 }1413 .controls {1414 display: block;1415 }1416 .ctrl-side {1417 display: none;1418 }1419 }1420 @media (min-width: 1320px) and (min-height: 1224px) {1421 .container {1422 width: 880px;1423 height: 1100px;1424 margin-top: 0;1425 font-size: 33px;1426 }1427 .controls {1428 display: none;1429 }1430 .ctrl-side {1431 display: block;1432 width: 220px;1433 height: 440px;1434 }1435 }1436 @media (min-width: 832px) and (min-height: 1248px) {1437 .container {1438 width: 832px;1439 height: 1040px;1440 margin-top: -104px;1441 font-size: 32px;1442 }1443 .controls {1444 display: block;1445 }1446 .ctrl-side {1447 display: none;1448 }1449 }1450 @media (min-width: 1344px) and (min-height: 1248px) {1451 .container {1452 width: 896px;1453 height: 1120px;1454 margin-top: 0;1455 font-size: 34px;1456 }1457 .controls {1458 display: none;1459 }1460 .ctrl-side {1461 display: block;1462 width: 224px;1463 height: 448px;1464 }1465 }1466 @media (min-width: 848px) and (min-height: 1272px) {1467 .container {1468 width: 848px;1469 height: 1060px;1470 margin-top: -106px;1471 font-size: 32px;1472 }1473 .controls {1474 display: block;1475 }1476 .ctrl-side {1477 display: none;1478 }1479 }1480 @media (min-width: 1368px) and (min-height: 1272px) {1481 .container {1482 width: 912px;1483 height: 1140px;1484 margin-top: 0;1485 font-size: 35px;1486 }1487 .controls {1488 display: none;1489 }1490 .ctrl-side {1491 display: block;1492 width: 228px;1493 height: 456px;1494 }1495 }1496 @media (min-width: 864px) and (min-height: 1296px) {1497 .container {1498 width: 864px;1499 height: 1080px;1500 margin-top: -108px;1501 font-size: 33px;1502 }1503 .controls {1504 display: block;1505 }1506 .ctrl-side {1507 display: none;1508 }1509 }1510 @media (min-width: 1392px) and (min-height: 1296px) {1511 .container {1512 width: 928px;1513 height: 1160px;1514 margin-top: 0;1515 font-size: 35px;1516 }1517 .controls {1518 display: none;1519 }1520 .ctrl-side {1521 display: block;1522 width: 232px;1523 height: 464px;1524 }1525 }1526 @media (min-width: 880px) and (min-height: 1320px) {1527 .container {1528 width: 880px;1529 height: 1100px;1530 margin-top: -110px;1531 font-size: 33px;1532 }1533 .controls {1534 display: block;1535 }1536 .ctrl-side {1537 display: none;1538 }1539 }1540 @media (min-width: 1440px) and (min-height: 1320px) {1541 .container {1542 width: 960px;1543 height: 1200px;1544 margin-top: 0;1545 font-size: 36px;1546 }1547 .controls {1548 display: none;1549 }1550 .ctrl-side {1551 display: block;1552 width: 240px;1553 height: 480px;1554 }1555 }1556 @media (min-width: 896px) and (min-height: 1344px) {1557 .container {1558 width: 896px;1559 height: 1120px;1560 margin-top: -112px;1561 font-size: 34px;1562 }1563 .controls {1564 display: block;1565 }1566 .ctrl-side {1567 display: none;1568 }1569 }1570 @media (min-width: 1464px) and (min-height: 1344px) {1571 .container {1572 width: 976px;1573 height: 1220px;1574 margin-top: 0;1575 font-size: 37px;1576 }1577 .controls {1578 display: none;1579 }1580 .ctrl-side {1581 display: block;1582 width: 244px;1583 height: 488px;1584 }1585 }1586 @media (min-width: 912px) and (min-height: 1368px) {1587 .container {1588 width: 912px;1589 height: 1140px;1590 margin-top: -114px;1591 font-size: 35px;1592 }1593 .controls {1594 display: block;1595 }1596 .ctrl-side {1597 display: none;1598 }1599 }1600 @media (min-width: 1488px) and (min-height: 1368px) {1601 .container {1602 width: 992px;1603 height: 1240px;1604 margin-top: 0;1605 font-size: 38px;1606 }1607 .controls {1608 display: none;1609 }1610 .ctrl-side {1611 display: block;1612 width: 248px;1613 height: 496px;1614 }1615 }1616 @media (min-width: 928px) and (min-height: 1392px) {1617 .container {1618 width: 928px;1619 height: 1160px;1620 margin-top: -116px;1621 font-size: 35px;1622 }1623 .controls {1624 display: block;1625 }1626 .ctrl-side {1627 display: none;1628 }1629 }1630 @media (min-width: 1512px) and (min-height: 1392px) {1631 .container {1632 width: 1008px;1633 height: 1260px;1634 margin-top: 0;1635 font-size: 38px;1636 }1637 .controls {1638 display: none;1639 }1640 .ctrl-side {1641 display: block;1642 width: 252px;1643 height: 504px;1644 }1645 }1646 @media (min-width: 944px) and (min-height: 1416px) {1647 .container {1648 width: 944px;1649 height: 1180px;1650 margin-top: -118px;1651 font-size: 36px;1652 }1653 .controls {1654 display: block;1655 }1656 .ctrl-side {1657 display: none;1658 }1659 }1660 @media (min-width: 1536px) and (min-height: 1416px) {1661 .container {1662 width: 1024px;1663 height: 1280px;1664 margin-top: 0;1665 font-size: 39px;1666 }1667 .controls {1668 display: none;1669 }1670 .ctrl-side {1671 display: block;1672 width: 256px;1673 height: 512px;1674 }1675 }1676 @media (min-width: 960px) and (min-height: 1440px) {1677 .container {1678 width: 960px;1679 height: 1200px;1680 margin-top: -120px;1681 font-size: 36px;1682 }1683 .controls {1684 display: block;1685 }1686 .ctrl-side {1687 display: none;1688 }1689 }1690 @media (min-width: 1560px) and (min-height: 1440px) {1691 .container {1692 width: 1040px;1693 height: 1300px;1694 margin-top: 0;1695 font-size: 40px;1696 }1697 .controls {1698 display: none;1699 }1700 .ctrl-side {1701 display: block;1702 width: 260px;1703 height: 520px;1704 }1705 }1706 @media (min-width: 976px) and (min-height: 1464px) {1707 .container {1708 width: 976px;1709 height: 1220px;1710 margin-top: -122px;1711 font-size: 37px;1712 }1713 .controls {1714 display: block;1715 }1716 .ctrl-side {1717 display: none;1718 }1719 }1720 @media (min-width: 1584px) and (min-height: 1464px) {1721 .container {1722 width: 1056px;1723 height: 1320px;1724 margin-top: 0;1725 font-size: 40px;1726 }1727 .controls {1728 display: none;1729 }1730 .ctrl-side {1731 display: block;1732 width: 264px;1733 height: 528px;1734 }1735 }1736 @media (min-width: 992px) and (min-height: 1488px) {1737 .container {1738 width: 992px;1739 height: 1240px;1740 margin-top: -124px;1741 font-size: 38px;1742 }1743 .controls {1744 display: block;1745 }1746 .ctrl-side {1747 display: none;1748 }1749 }1750 @media (min-width: 1608px) and (min-height: 1488px) {1751 .container {1752 width: 1072px;1753 height: 1340px;1754 margin-top: 0;1755 font-size: 41px;1756 }1757 .controls {1758 display: none;1759 }1760 .ctrl-side {1761 display: block;1762 width: 268px;1763 height: 536px;1764 }1765 }1766 @media (min-width: 1008px) and (min-height: 1512px) {1767 .container {1768 width: 1008px;1769 height: 1260px;1770 margin-top: -126px;1771 font-size: 38px;1772 }1773 .controls {1774 display: block;1775 }1776 .ctrl-side {1777 display: none;1778 }1779 }1780 @media (min-width: 1632px) and (min-height: 1512px) {1781 .container {1782 width: 1088px;1783 height: 1360px;1784 margin-top: 0;1785 font-size: 41px;1786 }1787 .controls {1788 display: none;1789 }1790 .ctrl-side {1791 display: block;1792 width: 272px;1793 height: 544px;1794 }1795 }1796 @media (min-width: 1024px) and (min-height: 1536px) {1797 .container {1798 width: 1024px;1799 height: 1280px;1800 margin-top: -128px;1801 font-size: 39px;1802 }1803 .controls {1804 display: block;1805 }1806 .ctrl-side {1807 display: none;1808 }1809 }1810 @media (min-width: 1656px) and (min-height: 1536px) {1811 .container {1812 width: 1104px;1813 height: 1380px;1814 margin-top: 0;1815 font-size: 42px;1816 }1817 .controls {1818 display: none;1819 }1820 .ctrl-side {1821 display: block;1822 width: 276px;1823 height: 552px;1824 }1825 }1826 @media (min-width: 1040px) and (min-height: 1560px) {1827 .container {1828 width: 1040px;1829 height: 1300px;1830 margin-top: -130px;1831 font-size: 40px;1832 }1833 .controls {1834 display: block;1835 }1836 .ctrl-side {1837 display: none;1838 }1839 }1840 @media (min-width: 1680px) and (min-height: 1560px) {1841 .container {1842 width: 1120px;1843 height: 1400px;1844 margin-top: 0;1845 font-size: 43px;1846 }1847 .controls {1848 display: none;1849 }1850 .ctrl-side {1851 display: block;1852 width: 280px;1853 height: 560px;1854 }1855 }1856 @media (min-width: 1056px) and (min-height: 1584px) {1857 .container {1858 width: 1056px;1859 height: 1320px;1860 margin-top: -132px;1861 font-size: 40px;1862 }1863 .controls {1864 display: block;1865 }1866 .ctrl-side {1867 display: none;1868 }1869 }1870 @media (min-width: 1728px) and (min-height: 1584px) {1871 .container {1872 width: 1152px;1873 height: 1440px;1874 margin-top: 0;1875 font-size: 44px;1876 }1877 .controls {1878 display: none;1879 }1880 .ctrl-side {1881 display: block;1882 width: 288px;1883 height: 576px;1884 }1885 }1886 @media (min-width: 1072px) and (min-height: 1608px) {1887 .container {1888 width: 1072px;1889 height: 1340px;1890 margin-top: -134px;1891 font-size: 41px;1892 }1893 .controls {1894 display: block;1895 }1896 .ctrl-side {1897 display: none;1898 }1899 }1900 @media (min-width: 1752px) and (min-height: 1608px) {1901 .container {1902 width: 1168px;1903 height: 1460px;1904 margin-top: 0;1905 font-size: 44px;1906 }1907 .controls {1908 display: none;1909 }1910 .ctrl-side {1911 display: block;1912 width: 292px;1913 height: 584px;1914 }1915 }1916 @media (min-width: 1088px) and (min-height: 1632px) {1917 .container {1918 width: 1088px;1919 height: 1360px;1920 margin-top: -136px;1921 font-size: 41px;1922 }1923 .controls {1924 display: block;1925 }1926 .ctrl-side {1927 display: none;1928 }1929 }1930 @media (min-width: 1776px) and (min-height: 1632px) {1931 .container {1932 width: 1184px;1933 height: 1480px;1934 margin-top: 0;1935 font-size: 45px;1936 }1937 .controls {1938 display: none;1939 }1940 .ctrl-side {1941 display: block;1942 width: 296px;1943 height: 592px;1944 }1945 }1946 @media (min-width: 1104px) and (min-height: 1656px) {1947 .container {1948 width: 1104px;1949 height: 1380px;1950 margin-top: -138px;1951 font-size: 42px;1952 }1953 .controls {1954 display: block;1955 }1956 .ctrl-side {1957 display: none;1958 }1959 }1960 @media (min-width: 1800px) and (min-height: 1656px) {1961 .container {1962 width: 1200px;1963 height: 1500px;1964 margin-top: 0;1965 font-size: 46px;1966 }1967 .controls {1968 display: none;1969 }1970 .ctrl-side {1971 display: block;1972 width: 300px;1973 height: 600px;1974 }1975 }1976 @media (min-width: 1120px) and (min-height: 1680px) {1977 .container {1978 width: 1120px;1979 height: 1400px;1980 margin-top: -140px;1981 font-size: 43px;1982 }1983 .controls {1984 display: block;1985 }1986 .ctrl-side {1987 display: none;1988 }1989 }1990 @media (min-width: 1824px) and (min-height: 1680px) {1991 .container {1992 width: 1216px;1993 height: 1520px;1994 margin-top: 0;1995 font-size: 46px;1996 }1997 .controls {1998 display: none;1999 }2000 .ctrl-side {2001 display: block;2002 width: 304px;2003 height: 608px;2004 }2005 }2006 @media (min-width: 1136px) and (min-height: 1704px) {2007 .container {2008 width: 1136px;2009 height: 1420px;2010 margin-top: -142px;2011 font-size: 43px;2012 }2013 .controls {2014 display: block;2015 }2016 .ctrl-side {2017 display: none;2018 }2019 }2020 @media (min-width: 1848px) and (min-height: 1704px) {2021 .container {2022 width: 1232px;2023 height: 1540px;2024 margin-top: 0;2025 font-size: 47px;2026 }2027 .controls {2028 display: none;2029 }2030 .ctrl-side {2031 display: block;2032 width: 308px;2033 height: 616px;2034 }2035 }2036 @media (min-width: 1152px) and (min-height: 1728px) {2037 .container {2038 width: 1152px;2039 height: 1440px;2040 margin-top: -144px;2041 font-size: 44px;2042 }2043 .controls {2044 display: block;2045 }2046 .ctrl-side {2047 display: none;2048 }2049 }2050 @media (min-width: 1872px) and (min-height: 1728px) {2051 .container {2052 width: 1248px;2053 height: 1560px;2054 margin-top: 0;2055 font-size: 48px;2056 }2057 .controls {2058 display: none;2059 }2060 .ctrl-side {2061 display: block;2062 width: 312px;2063 height: 624px;2064 }2065 }2066 @media (min-width: 1168px) and (min-height: 1752px) {2067 .container {2068 width: 1168px;2069 height: 1460px;2070 margin-top: -146px;2071 font-size: 44px;2072 }2073 .controls {2074 display: block;2075 }2076 .ctrl-side {2077 display: none;2078 }2079 }2080 @media (min-width: 1896px) and (min-height: 1752px) {2081 .container {2082 width: 1264px;2083 height: 1580px;2084 margin-top: 0;2085 font-size: 48px;2086 }2087 .controls {2088 display: none;2089 }2090 .ctrl-side {2091 display: block;2092 width: 316px;2093 height: 632px;2094 }2095 }2096 @media (min-width: 1184px) and (min-height: 1776px) {2097 .container {2098 width: 1184px;2099 height: 1480px;2100 margin-top: -148px;2101 font-size: 45px;2102 }2103 .controls {2104 display: block;2105 }2106 .ctrl-side {2107 display: none;2108 }2109 }2110 @media (min-width: 1920px) and (min-height: 1776px) {2111 .container {2112 width: 1280px;2113 height: 1600px;2114 margin-top: 0;2115 font-size: 49px;2116 }2117 .controls {2118 display: none;2119 }2120 .ctrl-side {2121 display: block;2122 width: 320px;2123 height: 640px;2124 }2125 }2126 @media (min-width: 1200px) and (min-height: 1800px) {2127 .container {2128 width: 1200px;2129 height: 1500px;2130 margin-top: -150px;2131 font-size: 46px;2132 }2133 .controls {2134 display: block;2135 }2136 .ctrl-side {2137 display: none;2138 }2139 }2140 @media (min-width: 1944px) and (min-height: 1800px) {2141 .container {2142 width: 1296px;2143 height: 1620px;2144 margin-top: 0;2145 font-size: 49px;2146 }2147 .controls {2148 display: none;2149 }2150 .ctrl-side {2151 display: block;2152 width: 324px;2153 height: 648px;2154 }2155 }2156 @media (min-width: 1216px) and (min-height: 1824px) {2157 .container {2158 width: 1216px;2159 height: 1520px;2160 margin-top: -152px;2161 font-size: 46px;2162 }2163 .controls {2164 display: block;2165 }2166 .ctrl-side {2167 display: none;2168 }2169 }2170 @media (min-width: 1968px) and (min-height: 1824px) {2171 .container {2172 width: 1312px;2173 height: 1640px;2174 margin-top: 0;2175 font-size: 50px;2176 }2177 .controls {2178 display: none;2179 }2180 .ctrl-side {2181 display: block;2182 width: 328px;2183 height: 656px;2184 }2185 }2186 @media (min-width: 1232px) and (min-height: 1848px) {2187 .container {2188 width: 1232px;2189 height: 1540px;2190 margin-top: -154px;2191 font-size: 47px;2192 }2193 .controls {2194 display: block;2195 }2196 .ctrl-side {2197 display: none;2198 }2199 }2200 @media (min-width: 2016px) and (min-height: 1848px) {2201 .container {2202 width: 1344px;2203 height: 1680px;2204 margin-top: 0;2205 font-size: 51px;2206 }2207 .controls {2208 display: none;2209 }2210 .ctrl-side {2211 display: block;2212 width: 336px;2213 height: 672px;2214 }2215 }2216 @media (min-width: 1248px) and (min-height: 1872px) {2217 .container {2218 width: 1248px;2219 height: 1560px;2220 margin-top: -156px;2221 font-size: 48px;2222 }2223 .controls {2224 display: block;2225 }2226 .ctrl-side {2227 display: none;2228 }2229 }2230 @media (min-width: 2040px) and (min-height: 1872px) {2231 .container {2232 width: 1360px;2233 height: 1700px;2234 margin-top: 0;2235 font-size: 52px;2236 }2237 .controls {2238 display: none;2239 }2240 .ctrl-side {2241 display: block;2242 width: 340px;2243 height: 680px;2244 }2245 }2246 @media (min-width: 1264px) and (min-height: 1896px) {2247 .container {2248 width: 1264px;2249 height: 1580px;2250 margin-top: -158px;2251 font-size: 48px;2252 }2253 .controls {2254 display: block;2255 }2256 .ctrl-side {2257 display: none;2258 }2259 }2260 @media (min-width: 2064px) and (min-height: 1896px) {2261 .container {2262 width: 1376px;2263 height: 1720px;2264 margin-top: 0;2265 font-size: 52px;2266 }2267 .controls {2268 display: none;2269 }2270 .ctrl-side {2271 display: block;2272 width: 344px;2273 height: 688px;2274 }2275 }2276 @media (min-width: 1280px) and (min-height: 1920px) {2277 .container {2278 width: 1280px;2279 height: 1600px;2280 margin-top: -160px;2281 font-size: 49px;2282 }2283 .controls {2284 display: block;2285 }2286 .ctrl-side {2287 display: none;2288 }2289 }2290 @media (min-width: 2088px) and (min-height: 1920px) {2291 .container {2292 width: 1392px;2293 height: 1740px;2294 margin-top: 0;2295 font-size: 53px;2296 }2297 .controls {2298 display: none;2299 }2300 .ctrl-side {2301 display: block;2302 width: 348px;2303 height: 696px;2304 }2305 }2306 @media (min-width: 1296px) and (min-height: 1944px) {2307 .container {2308 width: 1296px;2309 height: 1620px;2310 margin-top: -162px;2311 font-size: 49px;2312 }2313 .controls {2314 display: block;2315 }2316 .ctrl-side {2317 display: none;2318 }2319 }2320 @media (min-width: 2112px) and (min-height: 1944px) {2321 .container {2322 width: 1408px;2323 height: 1760px;2324 margin-top: 0;2325 font-size: 54px;2326 }2327 .controls {2328 display: none;2329 }2330 .ctrl-side {2331 display: block;2332 width: 352px;2333 height: 704px;2334 }2335 }2336 @media (min-width: 1312px) and (min-height: 1968px) {2337 .container {2338 width: 1312px;2339 height: 1640px;2340 margin-top: -164px;2341 font-size: 50px;2342 }2343 .controls {2344 display: block;2345 }2346 .ctrl-side {2347 display: none;2348 }2349 }2350 @media (min-width: 2136px) and (min-height: 1968px) {2351 .container {2352 width: 1424px;2353 height: 1780px;2354 margin-top: 0;2355 font-size: 54px;2356 }2357 .controls {2358 display: none;2359 }2360 .ctrl-side {2361 display: block;2362 width: 356px;2363 height: 712px;2364 }2365 }2366 @media (min-width: 1328px) and (min-height: 1992px) {2367 .container {2368 width: 1328px;2369 height: 1660px;2370 margin-top: -166px;2371 font-size: 51px;2372 }2373 .controls {2374 display: block;2375 }2376 .ctrl-side {2377 display: none;2378 }2379 }2380 @media (min-width: 2160px) and (min-height: 1992px) {2381 .container {2382 width: 1440px;2383 height: 1800px;2384 margin-top: 0;2385 font-size: 55px;2386 }2387 .controls {2388 display: none;2389 }2390 .ctrl-side {2391 display: block;2392 width: 360px;2393 height: 720px;2394 }2395 }2396 @media (min-width: 1344px) and (min-height: 2016px) {2397 .container {2398 width: 1344px;2399 height: 1680px;2400 margin-top: -168px;2401 font-size: 51px;2402 }2403 .controls {2404 display: block;2405 }2406 .ctrl-side {2407 display: none;2408 }2409 }2410 @media (min-width: 2184px) and (min-height: 2016px) {2411 .container {2412 width: 1456px;2413 height: 1820px;2414 margin-top: 0;2415 font-size: 56px;2416 }2417 .controls {2418 display: none;2419 }2420 .ctrl-side {2421 display: block;2422 width: 364px;2423 height: 728px;2424 }2425 }2426 @media (min-width: 1360px) and (min-height: 2040px) {2427 .container {2428 width: 1360px;2429 height: 1700px;2430 margin-top: -170px;2431 font-size: 52px;2432 }2433 .controls {2434 display: block;2435 }2436 .ctrl-side {2437 display: none;2438 }2439 }2440 @media (min-width: 2208px) and (min-height: 2040px) {2441 .container {2442 width: 1472px;2443 height: 1840px;2444 margin-top: 0;2445 font-size: 56px;2446 }2447 .controls {2448 display: none;2449 }2450 .ctrl-side {2451 display: block;2452 width: 368px;2453 height: 736px;2454 }2455 }2456 @media (min-width: 1376px) and (min-height: 2064px) {2457 .container {2458 width: 1376px;2459 height: 1720px;2460 margin-top: -172px;2461 font-size: 52px;2462 }2463 .controls {2464 display: block;2465 }2466 .ctrl-side {2467 display: none;2468 }2469 }2470 @media (min-width: 2232px) and (min-height: 2064px) {2471 .container {2472 width: 1488px;2473 height: 1860px;2474 margin-top: 0;2475 font-size: 57px;2476 }2477 .controls {2478 display: none;2479 }2480 .ctrl-side {2481 display: block;2482 width: 372px;2483 height: 744px;2484 }2485 }2486 @media (min-width: 1392px) and (min-height: 2088px) {2487 .container {2488 width: 1392px;2489 height: 1740px;2490 margin-top: -174px;2491 font-size: 53px;2492 }2493 .controls {2494 display: block;2495 }2496 .ctrl-side {2497 display: none;2498 }2499 }2500 @media (min-width: 2256px) and (min-height: 2088px) {2501 .container {2502 width: 1504px;2503 height: 1880px;2504 margin-top: 0;2505 font-size: 57px;2506 }2507 .controls {2508 display: none;2509 }2510 .ctrl-side {2511 display: block;2512 width: 376px;2513 height: 752px;2514 }2515 }2516 @media (min-width: 1408px) and (min-height: 2112px) {2517 .container {2518 width: 1408px;2519 height: 1760px;2520 margin-top: -176px;2521 font-size: 54px;2522 }2523 .controls {2524 display: block;2525 }2526 .ctrl-side {2527 display: none;2528 }2529 }2530 @media (min-width: 2304px) and (min-height: 2112px) {2531 .container {2532 width: 1536px;2533 height: 1920px;2534 margin-top: 0;2535 font-size: 59px;2536 }2537 .controls {2538 display: none;2539 }2540 .ctrl-side {2541 display: block;2542 width: 384px;2543 height: 768px;2544 }2545 }2546 @media (min-width: 1424px) and (min-height: 2136px) {2547 .container {2548 width: 1424px;2549 height: 1780px;2550 margin-top: -178px;2551 font-size: 54px;2552 }2553 .controls {2554 display: block;2555 }2556 .ctrl-side {2557 display: none;2558 }2559 }2560 @media (min-width: 2328px) and (min-height: 2136px) {2561 .container {2562 width: 1552px;2563 height: 1940px;2564 margin-top: 0;2565 font-size: 59px;2566 }2567 .controls {2568 display: none;2569 }2570 .ctrl-side {2571 display: block;2572 width: 388px;2573 height: 776px;2574 }2575 }2576 @media (min-width: 1440px) and (min-height: 2160px) {2577 .container {2578 width: 1440px;2579 height: 1800px;2580 margin-top: -180px;2581 font-size: 55px;2582 }2583 .controls {2584 display: block;2585 }2586 .ctrl-side {2587 display: none;2588 }2589 }2590 @media (min-width: 2352px) and (min-height: 2160px) {2591 .container {2592 width: 1568px;2593 height: 1960px;2594 margin-top: 0;2595 font-size: 60px;2596 }2597 .controls {2598 display: none;2599 }2600 .ctrl-side {2601 display: block;2602 width: 392px;2603 height: 784px;2604 }2605 }2606 @media (min-width: 1456px) and (min-height: 2184px) {2607 .container {2608 width: 1456px;2609 height: 1820px;2610 margin-top: -182px;2611 font-size: 56px;2612 }2613 .controls {2614 display: block;2615 }2616 .ctrl-side {2617 display: none;2618 }2619 }2620 @media (min-width: 2376px) and (min-height: 2184px) {2621 .container {2622 width: 1584px;2623 height: 1980px;2624 margin-top: 0;2625 font-size: 60px;2626 }2627 .controls {2628 display: none;2629 }2630 .ctrl-side {2631 display: block;2632 width: 396px;2633 height: 792px;2634 }2635 }2636 @media (min-width: 1472px) and (min-height: 2208px) {2637 .container {2638 width: 1472px;2639 height: 1840px;2640 margin-top: -184px;2641 font-size: 56px;2642 }2643 .controls {2644 display: block;2645 }2646 .ctrl-side {2647 display: none;2648 }2649 }2650 @media (min-width: 2400px) and (min-height: 2208px) {2651 .container {2652 width: 1600px;2653 height: 2000px;2654 margin-top: 0;2655 font-size: 61px;2656 }2657 .controls {2658 display: none;2659 }2660 .ctrl-side {2661 display: block;2662 width: 400px;2663 height: 800px;2664 }2665 }2666 @media (min-width: 1488px) and (min-height: 2232px) {2667 .container {2668 width: 1488px;2669 height: 1860px;2670 margin-top: -186px;2671 font-size: 57px;2672 }2673 .controls {2674 display: block;2675 }2676 .ctrl-side {2677 display: none;2678 }2679 }2680 @media (min-width: 2424px) and (min-height: 2232px) {2681 .container {2682 width: 1616px;2683 height: 2020px;2684 margin-top: 0;2685 font-size: 62px;2686 }2687 .controls {2688 display: none;2689 }2690 .ctrl-side {2691 display: block;2692 width: 404px;2693 height: 808px;2694 }2695 }2696 @media (min-width: 1504px) and (min-height: 2256px) {2697 .container {2698 width: 1504px;2699 height: 1880px;2700 margin-top: -188px;2701 font-size: 57px;2702 }2703 .controls {2704 display: block;2705 }2706 .ctrl-side {2707 display: none;2708 }2709 }2710 @media (min-width: 2448px) and (min-height: 2256px) {2711 .container {2712 width: 1632px;2713 height: 2040px;2714 margin-top: 0;2715 font-size: 62px;2716 }2717 .controls {2718 display: none;2719 }2720 .ctrl-side {2721 display: block;2722 width: 408px;2723 height: 816px;2724 }2725 }2726 @media (min-width: 1520px) and (min-height: 2280px) {2727 .container {2728 width: 1520px;2729 height: 1900px;2730 margin-top: -190px;2731 font-size: 58px;2732 }2733 .controls {2734 display: block;2735 }2736 .ctrl-side {2737 display: none;2738 }2739 }2740 @media (min-width: 2472px) and (min-height: 2280px) {2741 .container {2742 width: 1648px;2743 height: 2060px;2744 margin-top: 0;2745 font-size: 63px;2746 }2747 .controls {2748 display: none;2749 }2750 .ctrl-side {2751 display: block;2752 width: 412px;2753 height: 824px;2754 }2755 }2756 @media (min-width: 1536px) and (min-height: 2304px) {2757 .container {2758 width: 1536px;2759 height: 1920px;2760 margin-top: -192px;2761 font-size: 59px;2762 }2763 .controls {2764 display: block;2765 }2766 .ctrl-side {2767 display: none;2768 }2769 }2770 @media (min-width: 2496px) and (min-height: 2304px) {2771 .container {2772 width: 1664px;2773 height: 2080px;2774 margin-top: 0;2775 font-size: 64px;2776 }2777 .controls {2778 display: none;2779 }2780 .ctrl-side {2781 display: block;2782 width: 416px;2783 height: 832px;2784 }2785 }2786 @media (min-width: 1552px) and (min-height: 2328px) {2787 .container {2788 width: 1552px;2789 height: 1940px;2790 margin-top: -194px;2791 font-size: 59px;2792 }2793 .controls {2794 display: block;2795 }2796 .ctrl-side {2797 display: none;2798 }2799 }2800 @media (min-width: 2520px) and (min-height: 2328px) {2801 .container {2802 width: 1680px;2803 height: 2100px;2804 margin-top: 0;2805 font-size: 64px;2806 }2807 .controls {2808 display: none;2809 }2810 .ctrl-side {2811 display: block;2812 width: 420px;2813 height: 840px;2814 }2815 }2816 @media (min-width: 1568px) and (min-height: 2352px) {2817 .container {2818 width: 1568px;2819 height: 1960px;2820 margin-top: -196px;2821 font-size: 60px;2822 }2823 .controls {2824 display: block;2825 }2826 .ctrl-side {2827 display: none;2828 }2829 }2830 @media (min-width: 2544px) and (min-height: 2352px) {2831 .container {2832 width: 1696px;2833 height: 2120px;2834 margin-top: 0;2835 font-size: 65px;2836 }2837 .controls {2838 display: none;2839 }2840 .ctrl-side {2841 display: block;2842 width: 424px;2843 height: 848px;2844 }2845 }2846 @media (min-width: 1584px) and (min-height: 2376px) {2847 .container {2848 width: 1584px;2849 height: 1980px;2850 margin-top: -198px;2851 font-size: 60px;2852 }2853 .controls {2854 display: block;2855 }2856 .ctrl-side {2857 display: none;2858 }2859 }2860 @media (min-width: 2592px) and (min-height: 2376px) {2861 .container {2862 width: 1728px;2863 height: 2160px;2864 margin-top: 0;2865 font-size: 66px;2866 }2867 .controls {2868 display: none;2869 }2870 .ctrl-side {2871 display: block;2872 width: 432px;2873 height: 864px;2874 }2875 }2876 @media (min-width: 1600px) and (min-height: 2400px) {2877 .container {2878 width: 1600px;2879 height: 2000px;2880 margin-top: -200px;2881 font-size: 61px;2882 }2883 .controls {2884 display: block;2885 }2886 .ctrl-side {2887 display: none;2888 }2889 }2890 @media (min-width: 2616px) and (min-height: 2400px) {2891 .container {2892 width: 1744px;2893 height: 2180px;2894 margin-top: 0;2895 font-size: 67px;2896 }2897 .controls {2898 display: none;2899 }2900 .ctrl-side {2901 display: block;2902 width: 436px;2903 height: 872px;2904 }2905 }2906 `}</style>2907 </div>2908 );2909};...

Full Screen

Full Screen

textarea.js

Source:textarea.js Github

copy

Full Screen

1goog.provide('goog.ui.Textarea'); 2goog.require('goog.Timer'); 3goog.require('goog.events.EventType'); 4goog.require('goog.events.KeyCodes'); 5goog.require('goog.style'); 6goog.require('goog.ui.Control'); 7goog.require('goog.ui.TextareaRenderer'); 8goog.require('goog.userAgent'); 9goog.require('goog.userAgent.product'); 10goog.ui.Textarea = function(content, opt_renderer, opt_domHelper) { 11 goog.ui.Control.call(this, content, opt_renderer || goog.ui.TextareaRenderer.getInstance(), opt_domHelper); 12 this.setHandleMouseEvents(false); 13 this.setAllowTextSelection(true); 14 if(! content) { 15 this.setContentInternal(''); 16 } 17}; 18goog.inherits(goog.ui.Textarea, goog.ui.Control); 19goog.ui.Textarea.NEEDS_HELP_SHRINKING_ = goog.userAgent.GECKO || goog.userAgent.WEBKIT; 20goog.ui.Textarea.prototype.isResizing_ = false; 21goog.ui.Textarea.prototype.height_ = 0; 22goog.ui.Textarea.prototype.maxHeight_ = 0; 23goog.ui.Textarea.prototype.minHeight_ = 0; 24goog.ui.Textarea.prototype.hasDiscoveredTextareaCharacteristics_ = false; 25goog.ui.Textarea.prototype.needsPaddingBorderFix_ = false; 26goog.ui.Textarea.prototype.scrollHeightIncludesPadding_ = false; 27goog.ui.Textarea.prototype.scrollHeightIncludesBorder_ = false; 28goog.ui.Textarea.prototype.paddingBox_; 29goog.ui.Textarea.prototype.borderBox_; 30goog.ui.Textarea.prototype.getPaddingBorderBoxHeight_ = function() { 31 var paddingBorderBoxHeight = this.paddingBox_.top + this.paddingBox_.bottom + this.borderBox_.top + this.borderBox_.bottom; 32 return paddingBorderBoxHeight; 33}; 34goog.ui.Textarea.prototype.getMinHeight = function() { 35 return this.minHeight_; 36}; 37goog.ui.Textarea.prototype.getMinHeight_ = function() { 38 var minHeight = this.minHeight_; 39 var textarea = this.getElement(); 40 if(minHeight && textarea && this.needsPaddingBorderFix_) { 41 minHeight -= this.getPaddingBorderBoxHeight_(); 42 } 43 return minHeight; 44}; 45goog.ui.Textarea.prototype.setMinHeight = function(height) { 46 this.minHeight_ = height; 47 this.resize(); 48}; 49goog.ui.Textarea.prototype.getMaxHeight = function() { 50 return this.maxHeight_; 51}; 52goog.ui.Textarea.prototype.getMaxHeight_ = function() { 53 var maxHeight = this.maxHeight_; 54 var textarea = this.getElement(); 55 if(maxHeight && textarea && this.needsPaddingBorderFix_) { 56 maxHeight -= this.getPaddingBorderBoxHeight_(); 57 } 58 return maxHeight; 59}; 60goog.ui.Textarea.prototype.setMaxHeight = function(height) { 61 this.maxHeight_ = height; 62 this.resize(); 63}; 64goog.ui.Textarea.prototype.setValue = function(value) { 65 this.setContent(String(value)); 66}; 67goog.ui.Textarea.prototype.getValue = function() { 68 return this.getElement().value; 69}; 70goog.ui.Textarea.prototype.setContent = function(content) { 71 goog.ui.Textarea.superClass_.setContent.call(this, content); 72 this.resize(); 73}; 74goog.ui.Textarea.prototype.setEnabled = function(enable) { 75 goog.ui.Textarea.superClass_.setEnabled.call(this, enable); 76 this.getElement().disabled = ! enable; 77}; 78goog.ui.Textarea.prototype.resize = function() { 79 if(this.getElement()) { 80 this.grow_(); 81 } 82}; 83goog.ui.Textarea.prototype.enterDocument = function() { 84 var textarea = this.getElement(); 85 goog.style.setStyle(textarea, { 86 'overflowY': 'hidden', 87 'overflowX': 'auto', 88 'boxSizing': 'border-box', 89 'MsBoxSizing': 'border-box', 90 'WebkitBoxSizing': 'border-box', 91 'MozBoxSizing': 'border-box' 92 }); 93 this.paddingBox_ = goog.style.getPaddingBox(textarea); 94 this.borderBox_ = goog.style.getBorderBox(textarea); 95 this.getHandler().listen(textarea, goog.events.EventType.SCROLL, this.grow_).listen(textarea, goog.events.EventType.FOCUS, this.grow_).listen(textarea, goog.events.EventType.KEYUP, this.grow_).listen(textarea, goog.events.EventType.MOUSEUP, this.mouseUpListener_); 96 this.resize(); 97}; 98goog.ui.Textarea.prototype.getHeight_ = function() { 99 this.discoverTextareaCharacteristics_(); 100 var textarea = this.getElement(); 101 var height = this.getElement().scrollHeight + this.getHorizontalScrollBarHeight_(); 102 if(this.needsPaddingBorderFix_) { 103 height -= this.getPaddingBorderBoxHeight_(); 104 } else { 105 if(! this.scrollHeightIncludesPadding_) { 106 var paddingBox = this.paddingBox_; 107 var paddingBoxHeight = paddingBox.top + paddingBox.bottom; 108 height += paddingBoxHeight; 109 } 110 if(! this.scrollHeightIncludesBorder_) { 111 var borderBox = goog.style.getBorderBox(textarea); 112 var borderBoxHeight = borderBox.top + borderBox.bottom; 113 height += borderBoxHeight; 114 } 115 } 116 return height; 117}; 118goog.ui.Textarea.prototype.setHeight_ = function(height) { 119 if(this.height_ != height) { 120 this.height_ = height; 121 this.getElement().style.height = height + 'px'; 122 } 123}; 124goog.ui.Textarea.prototype.setHeightToEstimate_ = function() { 125 var textarea = this.getElement(); 126 textarea.style.height = 'auto'; 127 var newlines = textarea.value.match(/\n/g) ||[]; 128 textarea.rows = newlines.length + 1; 129}; 130goog.ui.Textarea.prototype.getHorizontalScrollBarHeight_ = function() { 131 var textarea = this.getElement(); 132 var height = textarea.offsetHeight - textarea.clientHeight; 133 if(! this.scrollHeightIncludesPadding_) { 134 var paddingBox = this.paddingBox_; 135 var paddingBoxHeight = paddingBox.top + paddingBox.bottom; 136 height -= paddingBoxHeight; 137 } 138 if(! this.scrollHeightIncludesBorder_) { 139 var borderBox = goog.style.getBorderBox(textarea); 140 var borderBoxHeight = borderBox.top + borderBox.bottom; 141 height -= borderBoxHeight; 142 } 143 return height > 0 ? height: 0; 144}; 145goog.ui.Textarea.prototype.discoverTextareaCharacteristics_ = function() { 146 if(! this.hasDiscoveredTextareaCharacteristics_) { 147 var textarea =(this.getElement().cloneNode(false)); 148 goog.style.setStyle(textarea, { 149 'position': 'absolute', 150 'height': 'auto', 151 'top': '-9999px', 152 'margin': '0', 153 'padding': '1px', 154 'border': '1px solid #000', 155 'overflow': 'hidden' 156 }); 157 goog.dom.appendChild(this.getDomHelper().getDocument().body, textarea); 158 var initialScrollHeight = textarea.scrollHeight; 159 textarea.style.padding = '10px'; 160 var paddingScrollHeight = textarea.scrollHeight; 161 this.scrollHeightIncludesPadding_ = paddingScrollHeight > initialScrollHeight; 162 initialScrollHeight = paddingScrollHeight; 163 textarea.style.borderWidth = '10px'; 164 var borderScrollHeight = textarea.scrollHeight; 165 this.scrollHeightIncludesBorder_ = borderScrollHeight > initialScrollHeight; 166 textarea.style.height = '100px'; 167 var offsetHeightAtHeight100 = textarea.offsetHeight; 168 if(offsetHeightAtHeight100 != 100) { 169 this.needsPaddingBorderFix_ = true; 170 } 171 goog.dom.removeNode(textarea); 172 this.hasDiscoveredTextareaCharacteristics_ = true; 173 } 174}; 175goog.ui.Textarea.prototype.grow_ = function(opt_e) { 176 if(this.isResizing_) { 177 return; 178 } 179 var shouldCallShrink = false; 180 this.isResizing_ = true; 181 var textarea = this.getElement(); 182 if(textarea.scrollHeight) { 183 var setMinHeight = false; 184 var setMaxHeight = false; 185 var newHeight = this.getHeight_(); 186 var currentHeight = textarea.offsetHeight; 187 var minHeight = this.getMinHeight_(); 188 var maxHeight = this.getMaxHeight_(); 189 if(minHeight && newHeight < minHeight) { 190 this.setHeight_(minHeight); 191 setMinHeight = true; 192 } else if(maxHeight && newHeight > maxHeight) { 193 this.setHeight_(maxHeight); 194 textarea.style.overflowY = ''; 195 setMaxHeight = true; 196 } else if(currentHeight != newHeight) { 197 this.setHeight_(newHeight); 198 } else if(! this.height_) { 199 this.height_ = newHeight; 200 } 201 if(! setMinHeight && ! setMaxHeight && goog.ui.Textarea.NEEDS_HELP_SHRINKING_) { 202 shouldCallShrink = true; 203 } 204 } else { 205 this.setHeightToEstimate_(); 206 } 207 this.isResizing_ = false; 208 if(shouldCallShrink) { 209 this.shrink_(); 210 } 211}; 212goog.ui.Textarea.prototype.shrink_ = function() { 213 var textarea = this.getElement(); 214 if(! this.isResizing_) { 215 this.isResizing_ = true; 216 var isEmpty = false; 217 if(! textarea.value) { 218 textarea.value = ' '; 219 isEmpty = true; 220 } 221 var scrollHeight = textarea.scrollHeight; 222 if(! scrollHeight) { 223 this.setHeightToEstimate_(); 224 } else { 225 var currentHeight = this.getHeight_(); 226 var minHeight = this.getMinHeight_(); 227 var maxHeight = this.getMaxHeight_(); 228 if(!(minHeight && currentHeight <= minHeight) && !(maxHeight && currentHeight >= maxHeight)) { 229 var paddingBox = this.paddingBox_; 230 textarea.style.paddingBottom = paddingBox.bottom + 1 + 'px'; 231 var heightAfterNudge = this.getHeight_(); 232 if(heightAfterNudge == currentHeight) { 233 textarea.style.paddingBottom = paddingBox.bottom + scrollHeight + 'px'; 234 textarea.scrollTop = 0; 235 var shrinkToHeight = this.getHeight_() - scrollHeight; 236 if(shrinkToHeight >= minHeight) { 237 this.setHeight_(shrinkToHeight); 238 } else { 239 this.setHeight_(minHeight); 240 } 241 } 242 textarea.style.paddingBottom = paddingBox.bottom + 'px'; 243 } 244 } 245 if(isEmpty) { 246 textarea.value = ''; 247 } 248 this.isResizing_ = false; 249 } 250}; 251goog.ui.Textarea.prototype.mouseUpListener_ = function(e) { 252 var textarea = this.getElement(); 253 var height = textarea.offsetHeight; 254 if(textarea['filters']&& textarea['filters'].length) { 255 var dropShadow = textarea['filters']['item']('DXImageTransform.Microsoft.DropShadow'); 256 if(dropShadow) { 257 height -= dropShadow['offX']; 258 } 259 } 260 if(height != this.height_) { 261 this.minHeight_ = height; 262 this.height_ = height; 263 } ...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import { height } from 'storybook-root'2const height = require('storybook-root').height3const { height } = require('storybook-root')4const height = require('storybook-root').height5const { height } = require('storybook-root')6const height = require('storybook-root').height7const { height } = require('storybook-root')8const height = require('storybook-root').height9const { height } = require('storybook-root')10const height = require('storybook-root').height11const { height } = require('storybook-root')12const height = require('storybook-root').height13const { height } = require('storybook-root')14const height = require('storybook-root').height15const { height } = require('storybook-root')16const height = require('storybook-root').height17const { height } = require('storybook-root')18const height = require('storybook-root').height19const { height } = require('storybook-root')20const height = require('storybook-root').height21const { height } = require('storybook-root')22const height = require('storybook-root').height23const { height } = require('storybook-root')24const height = require('storybook-root').height

Full Screen

Using AI Code Generation

copy

Full Screen

1const storybookRoot = require('storybook-root');2const height = storybookRoot.height();3console.log(height);4const storybookRoot = require('storybook-root');5const height = storybookRoot.height();6console.log(height);

Full Screen

Using AI Code Generation

copy

Full Screen

1const root = document.querySelector('storybook-root');2const height = root.height;3console.log(height);4const root = document.querySelector('storybook-root');5const height = root.height;6console.log(height);7import { height } from 'storybook-root';8const root = document.querySelector('storybook-root');9const height = root.height;10console.log(height);11const root = document.querySelector('storybook-root');12const height = root.height;13console.log(height);14import { height } from 'storybook-root';15const root = document.querySelector('storybook-root');16const height = root.height;17console.log(height);18const root = document.querySelector('storybook-root');19const height = root.height;20console.log(height);21import { height } from 'storybook-root';22const root = document.querySelector('storybook-root');23const height = root.height;24console.log(height);25const root = document.querySelector('storybook-root');26const height = root.height;27console.log(height);28import { height } from 'storybook-root';29const root = document.querySelector('storybook-root');30const height = root.height;31console.log(height);

Full Screen

Using AI Code Generation

copy

Full Screen

1const storybookRoot = require('storybook-root');2const height = storybookRoot.height;3const storybookRoot = require('storybook-root');4const width = storybookRoot.width;5const storybookRoot = require('storybook-root');6const root = storybookRoot.getRoot();7const storybookRoot = require('storybook-root');8const root = storybookRoot.getRoot();9const storybookRoot = require('storybook-root');10const root = storybookRoot.getRoot();

Full Screen

Using AI Code Generation

copy

Full Screen

1export const height = () => {2 return 100;3};4export const width = () => {5 return 100;6};7export const height = () => {8 return 200;9};10export const height = () => {11 return 100;12};13export const width = () => {14 return 100;15};16export const height = () => {17 return 200;18};19export const height = () => {20 return 100;21};22export const width = () => {23 return 100;24};25export const height = () => {26 return 200;27};28export const height = () => {29 return 100;30};31export const width = () => {32 return 100;33};34export const height = () => {35 return 200;36};37export const height = () => {38 return 100;39};40export const width = () => {41 return 100;42};43export const height = () => {44 return 200;45};46export const height = () => {47 return 100;48};49export const width = () => {50 return 100;51};52export const height = () => {53 return 200;54};55export const height = () => {56 return 100;57};58export const width = () => {59 return 100;60};61export const height = () => {62 return 200;63};64export const height = () => {65 return 100;66};67export const width = () => {68 return 100;69};70export const height = () => {71 return 200;72};73export const height = () => {74 return 100;75};76export const width = () => {77 return 100;78};79export const height = () => {80 return 200;81};82export const height = () => {83 return 100;84};85export const width = () => {86 return 100;87};88export const height = () => {89 return 200;90};

Full Screen

Using AI Code Generation

copy

Full Screen

1var height = document.getElementById('storybook-root').clientHeight;2console.log(height);3it('should return height of storybook-root', () => {4 cy.window().then(win => {5 const height = win.document.getElementById('storybook-root').clientHeight;6 expect(height).to.equal(800);7 });8});9I've tried using cy.get('dialog').should('have.length', 1).and('be.visible').and('exist

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run storybook-root automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful