|
| 1 | +.cml-base { |
| 2 | + text-align: left; |
| 3 | + font-size: 32rpx; |
| 4 | + letter-spacing: 1rpx; |
| 5 | + font-family: BlinkMacSystemFont, 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif; |
| 6 | +} |
| 7 | + |
| 8 | +.cml-base, |
| 9 | +.cml-base::before, |
| 10 | +.cml-base::after { |
| 11 | + box-sizing: border-box; |
| 12 | + -webkit-text-size-adjust: none; |
| 13 | + -moz-text-size-adjust: none; |
| 14 | + -ms-text-size-adjust: none; |
| 15 | + text-size-adjust: none; |
| 16 | +} |
| 17 | + |
| 18 | +.cml-view { |
| 19 | + display: -webkit-box; |
| 20 | + display: -webkit-flex; |
| 21 | + display: flex; |
| 22 | + box-sizing: border-box; |
| 23 | + position: relative; |
| 24 | + -webkit-box-orient: vertical; |
| 25 | + -webkit-box-direction: normal; |
| 26 | + -webkit-flex-direction: column; |
| 27 | + flex-direction: column; |
| 28 | + -webkit-flex-shrink: 0; |
| 29 | + flex-shrink: 0; |
| 30 | + -webkit-box-flex: 0; |
| 31 | + -webkit-flex-grow: 0; |
| 32 | + flex-grow: 0; |
| 33 | + -webkit-flex-basis: auto; |
| 34 | + flex-basis: auto; |
| 35 | + -webkit-box-align: stretch; |
| 36 | + -webkit-align-items: stretch; |
| 37 | + align-items: stretch; |
| 38 | + -webkit-align-content: flex-start; |
| 39 | + align-content: flex-start; |
| 40 | + border: 0 solid black; |
| 41 | + margin: 0; |
| 42 | + padding: 0; |
| 43 | + min-width: 0; |
| 44 | +} |
| 45 | + |
| 46 | +.cml-text { |
| 47 | + display: block; |
| 48 | + box-sizing: border-box; |
| 49 | + position: relative; |
| 50 | + white-space: pre-wrap; /* not using 'pre': support auto line feed. 保留空白符序列,但是正常地进行换行 */ |
| 51 | + word-wrap: break-word; /* 在长单词或 URL 地址内部进行换行。 */ |
| 52 | + overflow: hidden; /* it'll be clipped if the height is not high enough. */ |
| 53 | + |
| 54 | + -webkit-flex-shrink: 0; |
| 55 | + |
| 56 | + flex-shrink: 0; |
| 57 | + -webkit-box-flex: 0; |
| 58 | + -webkit-flex-grow: 0; |
| 59 | + flex-grow: 0; |
| 60 | + -webkit-flex-basis: auto; |
| 61 | + flex-basis: auto; |
| 62 | + border: 0 solid black; |
| 63 | + margin: 0; |
| 64 | + padding: 0; |
| 65 | + min-width: 0; |
| 66 | +} |
| 67 | + |
| 68 | +.border-1px, |
| 69 | +.border-top-1px, |
| 70 | +.border-right-1px, |
| 71 | +.border-bottom-1px, |
| 72 | +.border-left-1px { |
| 73 | + position: relative; |
| 74 | +} |
| 75 | + |
| 76 | +.border-top-1px:before, |
| 77 | +.border-left-1px:before, |
| 78 | +.border-1px:after, |
| 79 | +.border-right-1px:after, |
| 80 | +.border-bottom-1px:after { |
| 81 | + content: ""; |
| 82 | + display: block; |
| 83 | + position: absolute; |
| 84 | + -webkit-transform-origin: 0 0; |
| 85 | + transform-origin: 0 0; |
| 86 | + box-sizing: border-box; |
| 87 | + z-index: 2; |
| 88 | +} |
| 89 | + |
| 90 | +.border-1px:after { |
| 91 | + border: 1rpx solid #ccc; |
| 92 | + left: 0; |
| 93 | + top: 0; |
| 94 | + width: 100%; |
| 95 | + height: 100%; |
| 96 | + -webkit-transform-origin: 0 0; |
| 97 | + transform-origin: 0 0; |
| 98 | +} |
| 99 | + |
| 100 | +.border-top-1px:before { |
| 101 | + border-top: 1rpx solid #ccc; |
| 102 | + left: 0; |
| 103 | + top: 0; |
| 104 | + width: 100%; |
| 105 | +} |
| 106 | + |
| 107 | +.border-right-1px:after { |
| 108 | + border-right: 1rpx solid #ccc; |
| 109 | + top: 0; |
| 110 | + right: 0; |
| 111 | + height: 100%; |
| 112 | + -webkit-transform-origin: right 0; |
| 113 | + transform-origin: right 0; |
| 114 | +} |
| 115 | + |
| 116 | +.border-bottom-1px:after { |
| 117 | + border-bottom: 1rpx solid #ccc; |
| 118 | + left: 0; |
| 119 | + bottom: 0; |
| 120 | + width: 100%; |
| 121 | + -webkit-transform-origin: 0 bottom; |
| 122 | + transform-origin: 0 bottom; |
| 123 | +} |
| 124 | + |
| 125 | +.border-left-1px:before { |
| 126 | + border-left: 1rpx solid #ccc; |
| 127 | + top: 0; |
| 128 | + left: 0; |
| 129 | + height: 100%; |
| 130 | +} |
| 131 | + |
| 132 | +.border-none:before, .border-none:after { |
| 133 | + display: none; |
| 134 | +} |
0 commit comments