|
| 1 | +/** |
| 2 | + * 所有页面全局公共CSS |
| 3 | + * |
| 4 | + * @copyright 火星科技 mars3d.cn |
| 5 | + * @author 火星吴彦祖 2022-01-01 |
| 6 | + */ |
| 7 | + |
| 8 | +/* 清除内外边距 */ |
| 9 | +body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */ |
| 10 | + dl, dt, dd, ul, ol, li, /* list elements 列表元素 */ |
| 11 | + pre, /* text formatting elements 文本格式元素 */ |
| 12 | + fieldset, lengend, button, input, textarea, /* form elements 表单元素 */ |
| 13 | + th, td { |
| 14 | + /* table elements 表格元素 */ |
| 15 | + margin: 0; |
| 16 | + padding: 0; |
| 17 | + -moz-user-select: none; /*火狐*/ |
| 18 | + -webkit-user-select: none; /*webkit浏览器*/ |
| 19 | + -ms-user-select: none; /*IE10*/ |
| 20 | + -khtml-user-select: none; /*早期浏览器*/ |
| 21 | + user-select: none; |
| 22 | + list-style: none; |
| 23 | +} |
| 24 | + |
| 25 | +#app { |
| 26 | + height: 100%; |
| 27 | +} |
| 28 | + |
| 29 | +/*滚动条*/ |
| 30 | +body, |
| 31 | +html { |
| 32 | + background-color: @background-base; |
| 33 | + color: @mars-basecolor; |
| 34 | + overflow: hidden; |
| 35 | + * { |
| 36 | + scrollbar-base-color: #f4f7fc; |
| 37 | + scrollbar-track-color: #f4f7fc; |
| 38 | + scrollbar-face-color: #797979; |
| 39 | + scrollbar-arrow-color: #f4f7fc; |
| 40 | + scrollbar-shadow-color: #f4f7fc; |
| 41 | + scrollbar-3dlight-color: #f4f7fc; |
| 42 | + scrollbar-highlight-color: #f4f7fc; |
| 43 | + scrollbar-darkshadow-color: #f4f7fc; |
| 44 | + font-size: @font-size-base; |
| 45 | + scrollbar-width: thin; |
| 46 | + } |
| 47 | +} |
| 48 | + |
| 49 | +.layout-right__header { |
| 50 | + background-color: @mars-background-active; |
| 51 | + h3 { |
| 52 | + color: @mars-basecolor !important; |
| 53 | + } |
| 54 | +} |
| 55 | +.editor-container .editor-header { |
| 56 | + background-color: @mars-background-active; |
| 57 | + .fileTip { |
| 58 | + color: @mars-basecolor !important; |
| 59 | + } |
| 60 | +} |
| 61 | + |
| 62 | +.mars-link-btn-primary { |
| 63 | + * { |
| 64 | + color: @primary-color !important; |
| 65 | + } |
| 66 | +} |
| 67 | + |
| 68 | +::-webkit-scrollbar-button { |
| 69 | + height: 0; |
| 70 | + width: 0; |
| 71 | + display: none; |
| 72 | +} |
| 73 | + |
| 74 | +::-webkit-scrollbar-track { |
| 75 | + background: transparent; |
| 76 | +} |
| 77 | + |
| 78 | +::-webkit-scrollbar-track, |
| 79 | +::-webkit-scrollbar-thumb { |
| 80 | + border: 0; |
| 81 | +} |
| 82 | + |
| 83 | +::-webkit-scrollbar { |
| 84 | + height: 10px; |
| 85 | + width: 4px; |
| 86 | + background: transparent; |
| 87 | + border-radius: 4px; |
| 88 | +} |
| 89 | + |
| 90 | +::-webkit-scrollbar-thumb { |
| 91 | + padding-top: 100px; |
| 92 | + -webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset -1px -1px 0 rgba(0, 0, 0, 0.07); |
| 93 | + background-color: rgba(79, 79, 79, 0.8); |
| 94 | + min-height: 28px; |
| 95 | + border-radius: 4px; |
| 96 | + background-clip: padding-box; |
| 97 | +} |
| 98 | + |
| 99 | +::-webkit-scrollbar-track, |
| 100 | +::-webkit-scrollbar-thumb { |
| 101 | + border: 0; |
| 102 | +} |
| 103 | + |
| 104 | +::-webkit-scrollbar-thumb:hover { |
| 105 | + -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.25); |
| 106 | + background-color: rgba(0, 0, 0, 0.4); |
| 107 | +} |
| 108 | + |
| 109 | +::-webkit-scrollbar-thumb:active { |
| 110 | + -webkit-box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35); |
| 111 | + background-color: rgba(0, 0, 0, 0.5); |
| 112 | +} |
| 113 | + |
| 114 | +.base-overlay { |
| 115 | + .ant-dropdown-menu { |
| 116 | + background-color: rgba(63, 72, 84, 0.7) !important; |
| 117 | + .i-icon { |
| 118 | + vertical-align: middle; |
| 119 | + margin-right: 4px; |
| 120 | + } |
| 121 | + } |
| 122 | +} |
| 123 | + |
| 124 | +/* Popup样式*/ |
| 125 | +.mars3d-popup-btn-custom { |
| 126 | + padding: 3px 10px; |
| 127 | + border: 1px solid #209ffd; |
| 128 | + background: #209ffd1c; |
| 129 | +} |
| 130 | + |
| 131 | +.mars3d-template-content label { |
| 132 | + padding-right: 6px; |
| 133 | +} |
| 134 | + |
| 135 | +.mars3d-template-titile a { |
| 136 | + font-size: 16px; |
| 137 | +} |
| 138 | + |
| 139 | +.icon-vertical-a { |
| 140 | + width: 20px; |
| 141 | + height: 20px; |
| 142 | + vertical-align: -0.3em !important; |
| 143 | +} |
| 144 | + |
| 145 | +.ant-popover { |
| 146 | + .ant-popover-title { |
| 147 | + color: @mars-basecolor; |
| 148 | + } |
| 149 | +} |
| 150 | +.ant-popover-inner-content { |
| 151 | + a { |
| 152 | + color: @primary-color !important; |
| 153 | + &:hover { |
| 154 | + text-decoration: underline; |
| 155 | + } |
| 156 | + } |
| 157 | +} |
| 158 | + |
| 159 | +.mars-primary-table { |
| 160 | + width: 100%; |
| 161 | + tr td:nth-of-type(1) { |
| 162 | + width: 100px; |
| 163 | + } |
| 164 | + td { |
| 165 | + padding: 5px; |
| 166 | + } |
| 167 | +} |
0 commit comments