cccc.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. .font-larger {
  2. font-size: 18px !important;
  3. }
  4. .font-large {
  5. font-size: 16px !important;
  6. }
  7. .font-normal {
  8. font-size: 14px !important;
  9. }
  10. .font-small {
  11. font-size: 13px !important;
  12. }
  13. .font-smaller {
  14. font-size: 12px !important; /* 这是chrome能支持的最小字体*/
  15. }
  16. /*
  17. 实现文本两端对齐
  18. */
  19. .text-justify {
  20. text-align: justify;
  21. text-justify: inter-ideograph; /* IE 浏览器必须加这个 */
  22. line-height: 1rem;
  23. height: 1rem;
  24. overflow: hidden;
  25. }
  26. .text-justify:after {
  27. content: "";
  28. display: inline-block;
  29. width: 100%;
  30. }
  31. /*
  32. 按钮样式
  33. */
  34. .cccc-btn-default {
  35. display: inline-block;
  36. border: 1px solid grey;
  37. color: white;
  38. background-color: grey;
  39. line-height: 2em;
  40. height: 2em;
  41. text-align: center;
  42. vertical-align: middle;
  43. border-radius: 1em;
  44. text-underline-style: none;
  45. }
  46. .cccc-btn-yellow {
  47. display: inline-block;
  48. width: 8em;
  49. height: 2em;
  50. line-height: 2em;
  51. vertical-align: middle;
  52. background-color: #f9bf11;
  53. text-decoration: none;
  54. color: grey;
  55. text-align: center;
  56. border-radius: 4em;
  57. }
  58. .cccc-btn-yellow:hover {
  59. color: white;
  60. }
  61. .enable-resizable {
  62. padding: 0;
  63. position: absolute;
  64. border-left: 3px solid #cccccc;
  65. border-top: 3px solid #cccccc;
  66. box-sizing: content-box !important;
  67. }
  68. .enable-resizable .right-side {
  69. position: absolute;
  70. right: -3px;
  71. width: 3px;
  72. bottom: 0px;
  73. top: -3px;
  74. background-color: #cccccc;
  75. cursor: ew-resize;
  76. }
  77. .enable-resizable .bottom-side {
  78. position: absolute;
  79. left: -3px;
  80. bottom: -3px;
  81. right: 0px;
  82. height: 3px;
  83. background-color: #cccccc;
  84. cursor: ns-resize;
  85. }
  86. .enable-resizable .thumb {
  87. position: absolute;
  88. right: -3px;
  89. bottom: -3px;
  90. width: 11px;
  91. height: 10px;
  92. background-color: #cccccc;
  93. /*background-image: url("resize_thumb.png");*/
  94. background-size: contain;
  95. background-position: 1px 1px;
  96. cursor: se-resize;
  97. background-repeat: no-repeat;
  98. border: 1px solid #cccccc;
  99. border-top-left-radius: 10px;
  100. }
  101. .cccc-dialog {
  102. position: absolute;
  103. }
  104. .cccc-dialog .title-bar {
  105. display: flex;
  106. align-items: center;
  107. background-color: #007dcd;
  108. height: 2em;
  109. }
  110. .cccc-dialog .title-bar .caption {
  111. flex: 1 0 auto;
  112. color: white;
  113. padding-left: 1em;
  114. font-size: x-small;
  115. color: #f9bf11;
  116. }
  117. .cccc-dialog .title-bar .caption:hover {
  118. cursor: move;
  119. }
  120. .cccc-dialog .title-bar .close {
  121. background-image: url("close.png");
  122. background-position: center;
  123. background-size: contain;
  124. background-repeat: no-repeat;
  125. }
  126. .cccc-dialog .title-bar .close {
  127. width: 16px;
  128. height: 16px;
  129. display: inline-block;
  130. flex: none;
  131. border: 1px solid #4db3ff00;
  132. margin-right: .5em;
  133. }
  134. .cccc-dialog .title-bar .close:hover {
  135. border: 1px solid #4db3ff;
  136. }
  137. .left-arrow {
  138. display: block;
  139. position: absolute;
  140. border-right: 20px solid #cccccc;
  141. border-left-width: 0;
  142. border-top: 10px solid transparent;
  143. border-bottom: 10px solid transparent;
  144. }
  145. .round {
  146. border-radius: 50%;
  147. }
  148. .cccc-input-box{
  149. background-color: white;
  150. border: 0px solid white;
  151. outline: 0;
  152. padding: .5em;
  153. min-width: 5em;
  154. }
  155. /*滚动条样式*/
  156. .cccc-scrollbar::-webkit-scrollbar {/*滚动条整体样式*/
  157. width: 4px; /*高宽分别对应横竖滚动条的尺寸*/
  158. height: 4px;
  159. }
  160. .cccc-scrollbar::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
  161. border-radius: 5px;
  162. -webkit-box-shadow: inset 0 0 5px rgba(0, 159, 255,0.2);
  163. background: rgba(0, 159, 255,0.2);
  164. }
  165. .cccc-scrollbar::-webkit-scrollbar-track {/*滚动条里面轨道*/
  166. -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
  167. border-radius: 0;
  168. background: rgba(0,0,0,0.1);
  169. }
  170. .cccc-menu{
  171. display: block;
  172. padding: 0;
  173. }
  174. .cccc-menu > .cccc-menu-item{
  175. display: inline-block;
  176. height: 3em;
  177. min-width: 3em;
  178. padding: .5em;
  179. padding-top: 2.5em;
  180. padding-bottom: 1.5em;
  181. background-position: center top;
  182. background-size: auto 2em;
  183. background-repeat: no-repeat;
  184. /*margin: .5em;*/
  185. border: 1px solid rgba(0,0,0,0);
  186. border-radius: 2px;
  187. font-size: 12px;
  188. }
  189. .cccc-menu > .cccc-menu-item:hover{
  190. background-color: #0f98d1;
  191. }
  192. .cccc-menu > .cccc-menu-item:active{
  193. opacity: .7;
  194. }
  195. .toggle-button-group {
  196. flex: 0 1 auto;
  197. border: 1px solid rgba(0, 159, 255, 0);
  198. border-radius: .5em;
  199. height: 2em;
  200. text-align: center;
  201. display: flex;
  202. flex-flow: row nowrap;
  203. line-height: 2em;
  204. }
  205. .toggle-button-group > .toggle-button-default, .toggle-button-group .toggle-button-checked {
  206. flex: 1 1 auto;
  207. padding-left: 1em;
  208. padding-right: 1em;
  209. }
  210. .toggle-button-group > .toggle-button-checked:first-child, .toggle-button-group > .toggle-button-default:first-child {
  211. border-bottom-left-radius: .5em;
  212. border-top-left-radius: .5em;
  213. }
  214. .toggle-button-group > .toggle-button-checked:last-child, .toggle-button-group > .toggle-button-default:last-child {
  215. border-bottom-right-radius: .5em;
  216. border-top-right-radius: .5em;
  217. }
  218. .toggle-button-group > .toggle-button-default {
  219. color: rgb(0, 159, 255);
  220. border: 1px solid rgb(0, 159, 255);
  221. }
  222. .toggle-button-group > .toggle-button-checked {
  223. background-color: rgb(0, 159, 255);
  224. color: white;
  225. }
  226. .toggle-button-group > .toggle-button-default:hover, .toggle-button-group > .toggle-button-checked:hover {
  227. color: orange;
  228. }
  229. .toggle-button-group > .toggle-button-default:active, .toggle-button-group > .toggle-button-checked:active {
  230. opacity: .7;
  231. }
  232. input[type='checkbox'].cccc-checkbox{
  233. width: 1em;
  234. height: 1.5em;
  235. background-color: #fff;
  236. -webkit-appearance:none;
  237. border-width: 0px;
  238. outline: none;
  239. background-image: url("unchecked_checkbox_26px_easyicon.net.png");
  240. background-size: contain;
  241. background-repeat: no-repeat;
  242. background-position: center;
  243. opacity: .5;
  244. }
  245. input[type='checkbox'].cccc-checkbox:checked {
  246. background-image: url("checked_checkbox_26px_easyicon.net.png");
  247. }
  248. button.cccc-button-default{
  249. background-color: transparent;
  250. border-width: 0;
  251. background-image: url("button_bg.png");
  252. background-repeat: no-repeat;
  253. background-position: center;
  254. background-size: contain;
  255. width: 92px;
  256. height: 29px;
  257. line-height: 29px;
  258. color: white;
  259. font-weight: bold;
  260. font-size: 14px;
  261. outline: 0;
  262. }
  263. button.cccc-button-default:hover{
  264. color: orange;
  265. }
  266. button.cccc-button-default:active{
  267. opacity: .7;
  268. }