workbence.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. html,
  2. body,
  3. #space-content,
  4. .content-wrap,
  5. .iframe-wrap iframe {
  6. width: 100%;
  7. height: 100%;
  8. }
  9. body {
  10. box-sizing: border-box;
  11. /* 兼容 IOS<11.2 */
  12. height: calc(100% - constant(safe-area-inset-bottom)) ;
  13. /* 兼容 IOS>11.2 */
  14. height: calc(100% - env(safe-area-inset-bottom));
  15. /* IOS版本<11.2 */
  16. padding-bottom:constant(safe-area-inset-bottom) ;
  17. /* IOS版本>=11.2 */
  18. padding-bottom:env(safe-area-inset-bottom) ;
  19. }
  20. .iframe-wrap {
  21. box-sizing: border-box;
  22. width: 100%;
  23. height: calc(100% - 50px);
  24. overflow-y: auto;
  25. }
  26. /* 业务程序组件 */
  27. .appWindow {
  28. width: 100%;
  29. height: 100%;
  30. }
  31. .appWindow-top {
  32. position: fixed;
  33. left: 0;
  34. top: 0;
  35. width: 100%;
  36. box-sizing: border-box;
  37. text-align: center;
  38. padding: 0 12px;
  39. color: #000;
  40. background-color: #fff;
  41. height: 46px;
  42. line-height: 46px;
  43. z-index: 999;
  44. box-shadow: 0px 0px 2px rgba(0, 0, 0, .1);
  45. }
  46. #appWinTitle {
  47. font-size: 16px;
  48. font-weight: bold;
  49. -webkit-user-select: none;
  50. -moz-user-select: none;
  51. -ms-user-select: none;
  52. user-select: none
  53. }
  54. .appWindow-top-btn {
  55. position: absolute;
  56. right: 12px;
  57. top: 7px;
  58. font-size: 18px;
  59. background-color: #fff;
  60. border-radius: 20px;
  61. line-height: 28px;
  62. border: 1px solid #eaeaea;
  63. width: 80px;
  64. height: 30px;
  65. }
  66. .appWindow-top-btn span {
  67. vertical-align: middle;
  68. margin: 0px 3px;
  69. color: #efefef;
  70. border-left: 1px solid #efefef;
  71. display: inline-block;
  72. height: 20px;
  73. }
  74. .appWindow-top-btn i {
  75. vertical-align: middle;
  76. font-weight: bold;
  77. }
  78. .appWindow-top-back {
  79. position: absolute;
  80. left: 12px;
  81. top: 0;
  82. font-size: 20px;
  83. width: 36px;
  84. display: none;
  85. color: #333;
  86. z-index: 999;
  87. }
  88. .appWindow-top-btn i:active {
  89. color: #999;
  90. }
  91. .appWindow-iframe,
  92. .appWindow-iframe iframe {
  93. width: 100%;
  94. height: 100%;
  95. }
  96. .appWindow-iframe {
  97. height: calc(100% - 46px);
  98. padding-top: 46px;
  99. }