commonComponent.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. /*---------------------提示框样式 start---------------------*/
  2. /*示例:
  3. <div class="com-del-box">
  4. <div class="title">
  5. <i></i>
  6. </div>
  7. <div class="content">
  8. <p><i class="fa fa-exclamation-circle"></i>是否要删除此发票?</p>
  9. <div>
  10. <a>取消</a>
  11. <a>确认</a>
  12. </div>
  13. </div>
  14. </div>
  15. */
  16. .com-del-box{
  17. position: fixed;
  18. z-index: 10;
  19. min-height: 152px;
  20. opacity: 1;
  21. background-color: white;
  22. width: 310px;
  23. -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  24. -moz-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  25. box-shadow: 0 5px 15px rgba(0,0,0,.5);
  26. margin: -155px 0 0 -75px;
  27. top: 55%;
  28. left: 50%;
  29. }
  30. .com-del-box .title{
  31. height: 30px;
  32. background-color: #5078cb;
  33. text-align: right;
  34. padding-right: 15px;
  35. line-height: 30px;
  36. }
  37. .com-del-box .title i{
  38. background: url(/images/icon/close.png) no-repeat;
  39. display: inline-block;
  40. width: 9px;
  41. height: 9px;
  42. cursor: pointer;
  43. margin: 0;
  44. }
  45. .com-del-box .content{
  46. width: 100%;
  47. text-align: center;
  48. margin: 0 auto;
  49. }
  50. .com-del-box .content p{
  51. line-height: 50px;
  52. font-size: 14px;
  53. padding-top: 10px;
  54. }
  55. .com-del-box .content p i{
  56. color: #5078cb;
  57. font-size: 16px;
  58. margin-right: 10px;
  59. }
  60. .com-del-box .content div{
  61. width: 100%;
  62. text-align: center;
  63. margin: 0 auto;
  64. }
  65. .com-del-box .content div a{
  66. width: 55px;
  67. height: 26px;
  68. line-height: 26px;
  69. display: inline-block;
  70. text-align: center;
  71. font-size: 14px;
  72. cursor: pointer;
  73. }
  74. .com-del-box .content div a:first-child{
  75. background: #b4b5b9;
  76. color: #333;
  77. margin-right: 10px;
  78. }
  79. .com-del-box .content div a:last-child{
  80. background: #5078cb;
  81. color: #fff;
  82. }
  83. /*.com-del-box .content div a:hover{
  84. background: #3f7ae3;
  85. color: #fff;
  86. }*/
  87. /*---------------------提示框样式 end---------------------*/
  88. /*---------------------btn样式 start---------------------*/
  89. /*示例(size+type):
  90. <span class="com-btn-level1 com-btn-submit"></span>
  91. */
  92. /*btnSize*/
  93. .com-btn-level1 {
  94. display: inline-block;
  95. height: 25px;
  96. width:64px;
  97. text-align: center;
  98. line-height: 23px;
  99. font-size: 14px;
  100. cursor: pointer;
  101. vertical-align: middle;
  102. }
  103. .com-btn-level1[disabled] {
  104. cursor: not-allowed;
  105. }
  106. .com-btn-level2 {
  107. display: inline-block;
  108. padding: 0 11px;
  109. height: 25px;
  110. line-height: 23px;
  111. border-radius: 2px;
  112. font-size: 12px;
  113. cursor: pointer;
  114. vertical-align: middle;
  115. }
  116. .com-btn-level2[disabled] {
  117. cursor: not-allowed;
  118. }
  119. /*btnType*/
  120. .com-btn-submit {
  121. color: #fff;
  122. background: #5078cb;
  123. border: 1px solid #5078cb;
  124. }
  125. .com-btn-cancel {
  126. background: #c8c6c6;
  127. color: #fff;
  128. border: 1px solid #c8c6c6;
  129. }
  130. .com-btn-detail {
  131. color: #fff;
  132. background: #ff8522;
  133. border: 1px solid #ff8522;
  134. }
  135. .com-btn-detail-border {
  136. color: #ff8522;
  137. background: #fff;
  138. border: 1px solid #ff8522;
  139. }
  140. .com-btn-red {
  141. background: #f15601;
  142. color: #fff;
  143. border: 1px solid #f15601;
  144. }
  145. .com-btn-green {
  146. background: #33b401;
  147. color: #fff;
  148. border: 1px solid #33b401;
  149. }
  150. .com-btn-submit-border {
  151. border: 1px solid #5078cb;
  152. background: #fff;
  153. color: #5078cb;
  154. }
  155. /*---------------------btn样式 end-----------------------*/
  156. /*---------------------标准控件-新增start---------------------*/
  157. i.fa-plus-circle{
  158. font-size: 16px!important;
  159. color: #33b401!important;
  160. cursor: pointer;
  161. }
  162. /*---------------------标准控件-新增end---------------------*/
  163. /*---------------------标准控件-删除start---------------------*/
  164. i.fa-minus-circle{
  165. font-size: 16px!important;
  166. color: #f51c24!important;
  167. cursor: pointer;
  168. }
  169. /*---------------------标准控件-删除end---------------------*/
  170. /*---------------------标准控件-单选框start---------------------*/
  171. /** html代码
  172. <label class="com-check-radio">
  173. <input type="radio" id="effect" name="radio">
  174. <label for="effect"></label>
  175. 生效
  176. </label>
  177. <label class="com-check-radio">
  178. <input type="radio" id="no-effect" name="radio" checked="checked">
  179. <label for="no-effect"></label>
  180. 暂不生效
  181. </label>
  182. **/
  183. .com-check-radio input[type='radio']{
  184. display: none!important;
  185. margin: 7px 8px 0!important;
  186. }
  187. .com-check-radio input[type='radio'] + label{
  188. position: relative!important;
  189. top: 7px!important;
  190. margin-right: 5px!important;
  191. display: inline-block!important;
  192. width: 12px!important;
  193. height: 12px!important;
  194. font-weight: normal!important;
  195. background: url(/images/icon/check-rule.png) no-repeat;
  196. }
  197. .com-check-radio label{
  198. background-position: 0 0!important;
  199. }
  200. .com-check-radio input:checked + label{
  201. background-position: -15px 0!important;
  202. }
  203. /*---------------------标准控件-单选框end---------------------*/
  204. /*---------------------标准控件-复选框start---------------------*/
  205. /** html代码
  206. <label class="com-check-box">
  207. <input type="checkbox" id="1">
  208. <label for="1"></label>
  209. </label>
  210. **/
  211. .com-check-box,
  212. .com-check-box label {
  213. margin-bottom: 0;
  214. }
  215. .com-check-box input {
  216. display: none!important;
  217. }
  218. .com-check-box input[type="checkbox"] + label{
  219. display: inline-block!important ;
  220. position: relative!important ;
  221. top: 2px!important ;
  222. width: 12px!important ;
  223. height: 12px!important ;
  224. background: url(/images/icon/check-rule.png) no-repeat ;
  225. background-position: -48px 0;
  226. }
  227. .com-check-box input:checked + label {
  228. background-position: -31px 0;
  229. }
  230. /*---------------------标准控件-复选框end---------------------*/
  231. /*---------------------标准控件-开关(蓝色)start---------------------*/
  232. /** html代码
  233. <div class="com-switch-blue">
  234. <span class="checkbox">
  235. <span><em></em></span>
  236. </span>
  237. <span class="checkbox active">
  238. <span><em></em></span>
  239. </span>
  240. </div>
  241. **/
  242. div.com-switch-blue .checkbox {
  243. margin: 0 auto;
  244. text-align: center;
  245. position: relative;
  246. display: block;
  247. }
  248. div.com-switch-blue .checkbox span {
  249. width: 46px;
  250. height: 12px;
  251. display: inline-block;
  252. border-radius: 18px;
  253. border: #e4e4e4 1px solid;
  254. cursor: pointer;
  255. position: relative;
  256. box-shadow: 1px 1px 5px #eee;
  257. background: -webkit-gradient(linear,0% 0%, 0% 100%, from(#E0E0E0), to(#E8E8E8), color-stop(0.5,#F2F2F2));
  258. transition: background-color .1s ease-out;
  259. }
  260. div.com-switch-blue .checkbox.active span{
  261. background: #b9cffa;
  262. }
  263. div.com-switch-blue .checkbox.active span em{
  264. left: 34px;
  265. }
  266. div.com-switch-blue .checkbox span em{
  267. position: absolute;
  268. width: 16px;
  269. top: -5px;
  270. left: 0;
  271. height: 16px;
  272. line-height: 16px;
  273. background-color: #fff;
  274. border: #eee 1px solid;
  275. border-radius: 50%;
  276. box-shadow: -1px 2px 1px #999;
  277. transition: background-color .1s ease-out;
  278. color: #666;
  279. font-size: 12px;
  280. }
  281. div.com-switch-blue .checkbox span em:after{
  282. content: '';
  283. width: 6px;
  284. height: 6px;
  285. display: inline-block;
  286. background: #dedcdc;
  287. border-radius: 100%;
  288. position: absolute;
  289. top: 4px;
  290. left: 4px;
  291. }
  292. /*---------------------标准控件-开关(蓝色)end---------------------*/
  293. /*---------------------标准控件-开关(绿色)start---------------------*/
  294. /** html代码
  295. <div class="com-switch-green">
  296. <span class="checkbox">
  297. <span><em></em></span>
  298. </span>
  299. <span class="checkbox active">
  300. <span><em></em></span>
  301. </span>
  302. </div>
  303. **/
  304. div.com-switch-green .checkbox {
  305. margin: 0 auto;
  306. text-align: center;
  307. position: relative;
  308. display: block;
  309. }
  310. div.com-switch-green .checkbox span {
  311. width: 34px;
  312. height: 18px;
  313. display: inline-block;
  314. border-radius: 18px;
  315. border: #e4e4e4 1px solid;
  316. cursor: pointer;
  317. position: relative;
  318. box-shadow: 1px 1px 5px #eee;
  319. background: -webkit-gradient(linear,0% 0%, 0% 100%, from(#bbbcba), to(#bfc1be), color-stop(0.5,#c5c7c4));
  320. transition: background-color .1s ease-out;
  321. }
  322. div.com-switch-green .checkbox.active span{
  323. background: #3acb14;
  324. }
  325. div.com-switch-green .checkbox.active span em{
  326. left: 18px;
  327. }
  328. div.com-switch-green .checkbox span em{
  329. position: absolute;
  330. top: -2px;
  331. left: -3px;
  332. width: 18px;
  333. height: 18px;
  334. line-height: 18px;
  335. background-color: #fff;
  336. border: #eee 1px solid;
  337. border-radius: 50%;
  338. box-shadow: -1px 2px 1px #999;
  339. transition: background-color .1s ease-out;
  340. color: #666;
  341. font-size: 12px;
  342. }
  343. div.com-switch-green .checkbox span em:after{
  344. content: '';
  345. width: 6px;
  346. height: 6px;
  347. display: inline-block;
  348. background: #dedcdc;
  349. border-radius: 100%;
  350. position: absolute;
  351. top: 5px;
  352. left: 5px;
  353. }
  354. /*---------------------标准控件-开关(绿色)end---------------------*/
  355. /*---------------------信息提示框 start---------------------*/
  356. /** html代码
  357. <div class="tip">
  358. XXXX
  359. </div>
  360. **/
  361. div.tip{
  362. display: none;
  363. padding: 13px 10px;
  364. font-size: 12px;
  365. color: #333;
  366. background-color: #fff;
  367. border: 1px solid #89aefa;
  368. border-radius: 2px;
  369. box-shadow: 2px 2px 5px #dedede;
  370. -webkit-box-shadow: 2px 2px 5px #dedede;
  371. -moz-box-shadow: 2px 2px 5px #dedede;
  372. -o-box-shadow: 2px 2px 5px #dedede;
  373. }
  374. /*---------------------信息提示框 end---------------------*/
  375. /*---------------------提示浮层 start---------------------*/
  376. .com-supernatant-box{
  377. max-width:360px;
  378. opacity:.6;
  379. border-radius:5px;
  380. }
  381. .com-supernatant-box div{
  382. position:fixed;
  383. top:59%;
  384. left:50%;
  385. width:100%;
  386. transform:translate(-50%,-50%);
  387. color: #333;
  388. }
  389. .com-supernatant-box .success{
  390. background: #f00000;
  391. }
  392. .com-supernatant-box .defeat{
  393. background: #5078cb;
  394. }
  395. /*-------------------------提示浮层 end--------------------*/
  396. /*------下拉选框的使用样式方法------------------------------*/
  397. /*
  398. <div class='com-select-option'>
  399. <input id="classesType" ng-blur="onBlur()" ng-click="changeShowLogistics()" type="text" class="form-control" ng-model="message.classes" placeholder="请选择消息类型" readonly="true" >
  400. <ul id="ulContent" ng-if="matchData && showContent" class="dropdown-menu">
  401. <li ng-click="showText(classes)" ng-repeat="classes in resultList" ng-class="{'active': $index==selectIndex}" ng-bind="classes" ng-bind="message.classes"></li>
  402. </ul>
  403. </div>
  404. */
  405. /*-------------------------下拉选框 start-------------- --*/
  406. .com-select-option {
  407. position: relative;
  408. }
  409. .com-select-option>input {
  410. vertical-align: middle;
  411. width: 190px;
  412. margin-top: -2px;
  413. background-color: white !important;
  414. height: 30px;
  415. background: url(/images/icon/icon-xiala.png) no-repeat 167px 11px;
  416. cursor: pointer;
  417. }
  418. .com-select-option .dropdown-menu{
  419. top: 90%;
  420. left: unset;
  421. line-height: 30px;
  422. max-height: 300px;
  423. overflow-y: auto;
  424. width: 190px;
  425. display: block;
  426. overflow-x: hidden;
  427. border-radius: 2px;
  428. }
  429. .com-select-option .dropdown-menu li{
  430. font-size: 14px;
  431. cursor: pointer;
  432. padding-left:10px;
  433. height: 30px;
  434. }
  435. .com-select-option .dropdown-menu li:hover, .dropdown-menu li.active{
  436. color: #fff;
  437. background: #5078cb;
  438. }
  439. /*-------------------------下拉选框 end--------------------*/
  440. /*----------遮罩层 start-------------*/
  441. .modal-wrap {
  442. position: fixed;
  443. top: 0;
  444. bottom: 0;
  445. left: 0;
  446. right: 0;
  447. background: rgba(0, 0, 0, .3);
  448. z-index: 99;
  449. }
  450. /*----------遮罩层 end-------------*/