index.wxss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /*外部公共容器样式*/
  2. .flex-container{
  3. display:flex;
  4. height: 100vh;
  5. background-color:#666666;
  6. flex-direction : column;
  7. justify-content: center;
  8. align-items: center;
  9. color: #fff;
  10. }
  11. .dice-box{
  12. padding: 10px;
  13. }
  14. .second-row{
  15. display:flex;
  16. flex-direction : row;
  17. justify-content: space-around;
  18. }
  19. /* 骰子容器公用样式 */
  20. .face {
  21. display: flex;
  22. margin: 5px;
  23. padding: 4px;
  24. background-color:#ffffff;
  25. width: 108px;
  26. height: 108px;
  27. object-fit: contain;
  28. border-radius:10%;
  29. box-shadow: inset 0 5px white,
  30. inset 0 -5px #bbb,
  31. inset 5px 0 #d7d7d7,
  32. inset -5px 0 #d7d7d7;
  33. }
  34. /* 筛子中的点的样式 */
  35. .pip {
  36. display: block;
  37. width: 24px;
  38. height: 24px;
  39. border-radius: 50%;
  40. margin:4px;
  41. background-color: #333;
  42. box-shadow: inset 0 3px #111,
  43. inset 0 -3px #555;
  44. }
  45. /* 面公用样式 */
  46. /* 第一面布局方式:元素水平居中且垂直居中 */
  47. .first {
  48. justify-content: center;
  49. align-items: center;
  50. }
  51. /* 第二面布局方式 */
  52. .second {
  53. justify-content: space-between;
  54. }
  55. /* 右对齐 */
  56. .second .pip:last-child {
  57. align-self: flex-end;
  58. }
  59. /* 第三面布局方式 */
  60. .third {
  61. justify-content: space-between;
  62. }
  63. .third .pip.third-item-center {
  64. align-self: center;
  65. }
  66. .third .pip:last-child {
  67. align-self: flex-end;
  68. }
  69. /* 第四面布局方式 */
  70. .fourth {
  71. justify-content: space-between;
  72. }
  73. .fourth .column {
  74. display: flex;
  75. flex-direction: column;
  76. justify-content: space-between;
  77. }
  78. /* 第五面布局方式 */
  79. .fifth {
  80. justify-content: space-between;
  81. }
  82. .fifth .column {
  83. display: flex;
  84. flex-direction: column;
  85. justify-content: space-between;
  86. }
  87. .fifth .column.fifth-column-center{
  88. justify-content: center;
  89. }
  90. /* 第六面布局方式 */
  91. .sixth {
  92. justify-content:space-between;
  93. }
  94. .sixth .column {
  95. display: flex;
  96. flex-direction:column;
  97. justify-content:space-between;
  98. }
  99. .button-box{
  100. padding-top: 100px;
  101. width:80%;
  102. }