Advertisement
magrega

citadels css

Jul 13th, 2022
1,146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 9.82 KB | None | 0 0
  1. body {
  2.     font-family: 'PT Sana', sans-serif;
  3.     font-size: 14px;
  4.     background: #000;
  5.     margin: 0;
  6.     padding: 0;
  7.  
  8. }
  9.  
  10. /* //////////////////////////popup////////////////////////////////////////////// */
  11.  
  12. .box {
  13.     background:rgb(0, 0, 0, 0.8);
  14.     z-index: 9999;
  15.     height: 100%;
  16.     width: 100%;
  17.     position:fixed;
  18.     top:50%;
  19.     left:50%;
  20.     -ms-transform: translateX(-50%) translateY(-50%);
  21.     -webkit-transform: translate(-50%,-50%);
  22.     transform: translate(-50%,-50%);
  23.  
  24.   }
  25.  
  26.   .box .popupcard {
  27.     background:rgb(0, 0, 0, 0.8);
  28.     position: absolute;
  29.     top: 50%;
  30.     left: 50%;
  31.     transform: translate(-50%, -50%);
  32.  
  33.  
  34.   }
  35.  
  36.  
  37.  
  38.   /* /////////////////////////////////////////////////////////////////////////////// */
  39.  
  40. .player-me {
  41.     text-align: center;
  42.     color: white;
  43. }
  44.  
  45. #top-wrapper {
  46.  
  47.     display: flex;
  48.     flex-direction: row;
  49.     flex-wrap: nowrap;
  50.     justify-content: space-between;
  51.     align-content: stretch;
  52.     align-items: flex-start;
  53.  
  54. }
  55.  
  56. #role-order {
  57.     display: flex;
  58.     flex-wrap: wrap;
  59.     max-width: 400px;
  60.  
  61. }
  62.  
  63. .role {
  64.     display: flex;
  65.     flex-wrap: wrap;
  66.     flex-direction: row;
  67.     color: #000;
  68.     margin: 1px 1px;
  69.     background-color: #9c9b98;
  70.     border-color: black;
  71.     border-radius: 5%;
  72.     font-size: 16px;
  73.     padding: 4px 2%;
  74.     width: 100%;
  75.     font-weight: bold;
  76.  
  77.  
  78. }
  79.  
  80. #role-order>div {
  81.  
  82.     flex: 45%;
  83.  
  84. }
  85.  
  86.  
  87. .action {
  88.  
  89.     margin: 10px;
  90.  
  91. }
  92.  
  93. a {
  94.     color: purple;
  95.     font-weight: bold;
  96.     text-decoration: none;
  97. }
  98.  
  99. div#game-hand {
  100.  
  101.     text-align: center;
  102.  
  103.  
  104. }
  105.  
  106. .handcards {
  107.  
  108.     height: 10px;
  109.     width: 10px;
  110.     text-align: center;
  111.  
  112.  
  113. }
  114.  
  115.  
  116.  
  117. div#game-roles-deck {
  118.  
  119.     display: flex;
  120.     margin: 0;
  121.     align-items: flex-start;
  122.  
  123.  
  124. }
  125.  
  126.  
  127. div#coin {
  128.     z-index: 100;
  129.     background-color: rgba(0, 0, 0, 0.2);
  130.     padding: 10px;
  131.     border: dotted 1px #fff;
  132.     height: 32px;
  133.     width: 32px;
  134.     text-align: center;
  135.     background-image: url("/game/coin.png");
  136.     background-size: 32px 32px;
  137.     background-repeat: no-repeat;
  138.     background-position: center;
  139.  
  140.  
  141. }
  142.  
  143. div#coin span {
  144.     font-size: 24px;
  145.     font-weight: bold;
  146.     color: rgb(255, 198, 41);
  147.     text-shadow: 1px 0 1px #000,
  148.         0 1px 1px #000,
  149.         -1px 0 1px #000,
  150.         0 -1px 1px #000;
  151.     position: relative;
  152.     top: 12px;
  153.     left: 12px;
  154.  
  155.  
  156.  
  157.  
  158. }
  159.  
  160. /* div#game-log-current {
  161.     overflow: hidden;
  162.    
  163. } */
  164.  
  165. div#hand,
  166. div#game-log-full {
  167.     background-color: #000;
  168.     color: #fff;
  169.     height: 400px;
  170.     padding: 0px;
  171.     text-align: center;
  172. }
  173.  
  174. div#game-log-full div {
  175.     padding: 10px;
  176.    
  177. }
  178.  
  179. #game-log-full {
  180.     overflow-x: hidden;
  181.     overflow-y: scroll;
  182. }
  183.  
  184.  
  185. div.role div.role-coin {
  186.     width: 26px;
  187.     height: 16px;
  188.     margin: auto;
  189.     text-align: center;
  190.     color: #ffd878;
  191.     text-shadow: 1px 0 1px #000,
  192.     0 1px 1px #000,
  193.     -1px 0 1px #000,
  194.     0 -1px 1px #000;
  195.     font-size: 14px;
  196.     font-weight: bold;
  197.     background: rgba(0, 0, 0, 0) url(/game/coin.png) no-repeat;
  198.     background-size: contain;
  199.     background-position: center;
  200.     order: 1;
  201.  
  202.  
  203.  
  204. }
  205.  
  206.  
  207. div.role div.role-penalty {
  208.     width: 26px;
  209.     height: 15px;
  210.     margin: auto;
  211.     text-align: center;
  212.     color: #ffd878;
  213.     font-size: 15px;
  214.     font-weight: bold;
  215.     background: rgba(0, 0, 0, 0) url(/game/penalty.png) no-repeat;
  216.     background-size: contain;
  217.     background-position: center;
  218.     order: 4;
  219.  
  220.  
  221. }
  222.  
  223. div.role div.role-closed {
  224.     width: 26px;
  225.     height: 15px;
  226.     margin: auto;
  227.     text-align: center;
  228.     color: #ffd878;
  229.     font-size: 15px;
  230.     font-weight: bold;
  231.     background: rgba(0, 0, 0, 0) url(/game/closed.png) no-repeat;
  232.     background-size: contain;
  233.     background-position: center;
  234.     order: 3;
  235.  
  236.  
  237.  
  238. }
  239.  
  240. div.role div.role-card {
  241.     width: 26px;
  242.     height: 15px;
  243.     margin: auto;
  244.     text-align: center;
  245.     color: #ffd878;
  246.     font-size: 15px;
  247.     font-weight: bold;
  248.     background: rgba(0, 0, 0, 0) url(/game/card.png) no-repeat;
  249.     background-size: contain;
  250.     background-position: center;
  251.     order: 2;
  252.  
  253.  
  254. }
  255.  
  256. div.role-current {
  257.     background: #999;
  258. }
  259.  
  260. div.role span.role-player {
  261.     margin-left: 5px;
  262. }
  263.  
  264.  
  265.  
  266. div#hand,
  267. div#getcard,
  268. div#roles {
  269.     background: #000;
  270.     position: relative;
  271.     /* right: 2px; */
  272.     padding: 1px;
  273. }
  274.  
  275. div#roles div {
  276.     margin-right: 1px;
  277. }
  278.  
  279.  
  280.  
  281.  
  282. div#hand div,
  283. div#getcard div,
  284. td.citadel-cards div,
  285. div#roles div,
  286. div#roles-deck div {
  287.     border: solid 1px #000000;
  288.     display: inline-block;
  289.     width: 120px;
  290. }
  291.  
  292. div#roles-deck {
  293.     display: inline-block;
  294.     height: 320px;
  295.     margin-right: 10px;
  296. }
  297.  
  298. #citadels td.citadel-cards,
  299. div#roles-deck {
  300.     position: relative;
  301.     width: 120px;
  302.     padding: 1px;
  303. }
  304.  
  305. #game-log {
  306.     display: block;
  307.     width: 100%;
  308.     position: relative;
  309.     margin-bottom: 5px;
  310.    
  311. }
  312.  
  313. .ui-accordion-header {
  314.     min-height: 24px;
  315.    
  316. }
  317.  
  318. div.card-stack-0 {
  319.     top: 0px;
  320. }
  321.  
  322. div.card-stack-1 {
  323.     top: 45px;
  324. }
  325.  
  326. div.card-stack-2 {
  327.     top: 90px;
  328. }
  329.  
  330. div.card-stack-3 {
  331.     top: 135px;
  332. }
  333.  
  334. div.card-stack-4 {
  335.     top: 180px;
  336. }
  337.  
  338. div.card-stack-5 {
  339.     top: 225px;
  340. }
  341.  
  342. div.card-stack-6 {
  343.     top: 270px;
  344. }
  345.  
  346.  
  347. /* --------------------------------------Grid------------------------------- */
  348. .container {
  349.     display: flex;
  350.     flex-wrap: wrap;
  351.    
  352. }
  353.  
  354. .citGridLayout {
  355.     display: grid;
  356. grid-template-columns: repeat(3, 1fr);
  357. grid-template-rows: repeat(2, 1fr);
  358. grid-column-gap: 0px;
  359. grid-row-gap: 0px;
  360.  
  361. }
  362.  
  363. .gridLayout {
  364.     display: grid;
  365.     grid-template-columns: 1fr 2fr;
  366.     margin-bottom: 15px;
  367.     min-width: 50%;
  368.     align-items: center;
  369.  
  370.  
  371. }
  372.  
  373. #game-log-full { grid-area: 1 / 2 / 3 / 3; }
  374.  
  375. #game-log-full::-webkit-scrollbar {
  376.     display: none;
  377.   }
  378.  
  379. .player-1 { grid-area: 1 / 1 / 2 / 2; }
  380.  
  381. .player-2 {  
  382.     grid-area: 1 / 3 / 2 / 4;
  383.     grid-template-columns: 2fr 1fr;
  384.     order: 2;  
  385. }
  386. .player-3 { grid-area: 2 / 1 / 3 / 2; }
  387. .player-4 { grid-area: 2 / 3 / 3 / 4; }
  388.  
  389.  
  390. .name {
  391.     line-height: 30px;
  392.     text-align: center;
  393.     padding: 0 5px;
  394.     /* margin-right: 20%; */
  395.     color: white;
  396.  
  397. }
  398.  
  399. .cards-container {
  400.    
  401.     display: grid;
  402.     grid-template-columns: 1fr 1fr;
  403.     justify-self: center;
  404.    
  405.    
  406. }
  407.  
  408. .stack {
  409.    
  410.     background-color: white;
  411.     overflow: hidden;
  412.     height: 30px;
  413.     min-width: 30px;
  414.     max-width: 30px;
  415.     line-height: 30px;
  416.     text-align: center;
  417.     margin: 5px;
  418.     border: thin solid black;
  419.    
  420.  
  421. }
  422.  
  423. .stack:nth-child(odd) {  
  424.    
  425.     justify-self: end;
  426.  
  427. }
  428.  
  429.  
  430. .stack div {
  431.     margin: 0;
  432.  
  433. }
  434.  
  435.  
  436.  
  437.  
  438. .stack span {
  439.     display: none;
  440.     padding: 0 5px;
  441.     text-align: left;
  442.  
  443. }
  444.  
  445.  
  446. img {
  447.     height: 480px;
  448.     width: 384px;
  449. }
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456. @media screen and (max-width:640px) {
  457.     #game-log {
  458.         display: block;
  459.         width: auto;
  460.     }
  461. }
  462.  
  463. @media screen and (max-width:480px) {
  464.     div#coin {
  465.         margin: 15px 0 0 -85px;
  466.     }
  467.  
  468.     div#role-order {
  469.         width: 175px;
  470.     }
  471.  
  472.     div#hand div,
  473.     div#getcard div,
  474.     #citadels td.citadel-cards div,
  475.     div#roles div,
  476.     div#roles-deck div {
  477.         width: 100px;
  478.     }
  479.  
  480.     #citadels td.citadel-cards,
  481.     div#roles-deck {
  482.         width: 100px;
  483.     }
  484.  
  485.     div.card-stack-0 {
  486.         top: 0px;
  487.     }
  488.  
  489.     div.card-stack-1 {
  490.         top: 36px;
  491.     }
  492.  
  493.     div.card-stack-2 {
  494.         top: 72px;
  495.     }
  496.  
  497.     div.card-stack-3 {
  498.         top: 108px;
  499.     }
  500.  
  501.     div.card-stack-4 {
  502.         top: 144px;
  503.     }
  504.  
  505.     div.card-stack-5 {
  506.         top: 180px;
  507.     }
  508.  
  509.     div.card-stack-6 {
  510.         top: 216px;
  511.     }
  512.  
  513.     div#roles-deck {
  514.         height: 300px;
  515.     }
  516. }
  517.  
  518. @media screen and (max-width:360px) {
  519.     div#coin {
  520.         margin: 15px 0 0 -75px;
  521.     }
  522.  
  523.     div#role-order {
  524.         width: 150px;
  525.     }
  526.  
  527.     div#hand div,
  528.     div#getcard div,
  529.     #citadels td.citadel-cards div,
  530.     div#roles div,
  531.     div#roles-deck div {
  532.         width: 80px;
  533.     }
  534.  
  535.     #citadels td.citadel-cards,
  536.     div#roles-deck {
  537.         width: 80px;
  538.     }
  539.  
  540.     div#roles-deck {
  541.         height: 300px;
  542.     }
  543.  
  544.     div.card-stack-0 {
  545.         top: 0px;
  546.     }
  547.  
  548.     div.card-stack-1 {
  549.         top: 30px;
  550.     }
  551.  
  552.     div.card-stack-2 {
  553.         top: 60px;
  554.     }
  555.  
  556.     div.card-stack-3 {
  557.         top: 90px;
  558.     }
  559.  
  560.     div.card-stack-4 {
  561.         top: 120px;
  562.     }
  563.  
  564.     div.card-stack-5 {
  565.         top: 150px;
  566.     }
  567.  
  568.     div.card-stack-6 {
  569.         top: 180px;
  570.     }
  571. }
  572.  
  573. #citadels td.citadel-cards div,
  574. #roles-deck div {
  575.     position: absolute;
  576.     display: block;
  577.     left: 0;
  578.     background: #000;
  579. }
  580.  
  581. #citadels div.player-me {
  582.     background-color: #444;
  583. }
  584.  
  585. #citadels div.player-minister {
  586.     font-weight: bold;
  587.     color: #fcc !important;
  588. }
  589.  
  590. #citadels div.player-name {
  591.     color: #fff;
  592.     text-align: center;
  593.     font-size: 12px;
  594.     font-variant: all-small-caps;
  595.     padding: 2px;
  596.    
  597. }
  598.  
  599. div#roles div.canselect,
  600. div#getcard div.canselect,
  601. div#hand div.canselect {
  602.     transform: rotate(1.5deg);
  603. }
  604.  
  605. div.game-winner {
  606.     background-color: #fcc !important;
  607. }
  608.  
  609. div.game-result {
  610.     vertical-align: top;
  611.     display: inline-block;
  612.     background-color: #eee;
  613.     color: #000;
  614.     margin: 10px;
  615.     padding: 10px;
  616.     font-size: 14px;
  617.     text-align: center;
  618. }
  619.  
  620. div.game-result span {
  621.     font-size: 18px;
  622. }
  623.  
  624. div.action-title {
  625.     background: #f0f0f0;
  626.     color: #666;
  627. }
  628.  
  629. div#roles div.canselect:active,
  630. div#getcard div.canselect:active,
  631. div#hand div.canselect:active {
  632.     border-color: #f99;
  633. }
  634.  
  635. div.action:active {
  636.     color: #600;
  637.     background: #fcc;
  638. }
  639.  
  640. div.action {
  641.     background: #fee;
  642.     color: #400;
  643. }
  644.  
  645. div.action,
  646. div.action-title {
  647.     padding: 10px;
  648.     display: inline-block;
  649.     font-weight: bold;
  650.     font-size: 16px;
  651. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement