main.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. /*building SAAS 0.1*/
  2. /*bootstrap 初始化*/
  3. body {
  4. font-size: 0.9rem;
  5. overflow: hidden;
  6. background: #e4e7ea
  7. }
  8. .dropdown-menu {
  9. font-size: 0.9rem
  10. }
  11. .btn.disabled, .btn:disabled {
  12. color:#999
  13. }
  14. /*自定义css*/
  15. .sjs-height-1,.sjs-height-2{
  16. overflow: hidden;
  17. }
  18. .form-signin {
  19. max-width: 500px;
  20. margin: 150px auto;
  21. }
  22. .has-danger {
  23. -webkit-animation: shake 1s .2s ease both;
  24. -moz-animation: shake 1s .2s ease both;
  25. animation: shake 1s .2s ease both;
  26. }
  27. @-webkit-keyframes shake {
  28. 0%, 100% {
  29. -webkit-transform: translateX(0);
  30. }
  31. 10%, 30%, 50%, 70%, 90% {
  32. -webkit-transform: translateX(-10px);
  33. }
  34. 20%, 40%, 60%, 80% {
  35. -webkit-transform: translateX(10px);
  36. }
  37. }
  38. @-moz-keyframes shake {
  39. 0%, 100% {
  40. -moz-transform: translateX(0);
  41. }
  42. 10%, 30%, 50%, 70%, 90% {
  43. -moz-transform: translateX(-10px);
  44. }
  45. 20%, 40%, 60%, 80% {
  46. -moz-transform: translateX(10px);
  47. }
  48. }
  49. @keyframes shake {
  50. 0%, 100% {
  51. transform: translateX(0);
  52. }
  53. 10%, 30%, 50%, 70%, 90% {
  54. transform: translateX(-10px);
  55. }
  56. 20%, 40%, 60%, 80% {
  57. transform: translateX(10px);
  58. }
  59. }
  60. /*2.主体框架*/
  61. .header {
  62. background:#fff;
  63. position: fixed;
  64. z-index: 10;
  65. width: 100%;
  66. height: 50px;
  67. top: 0;
  68. left: 0
  69. }
  70. .main{
  71. position: relative;
  72. z-index: 4;
  73. }
  74. .main-nav {
  75. position: fixed;
  76. z-index: 99;
  77. width:120px;
  78. left: 0;
  79. top: 0;
  80. height: 100%;
  81. background: #33425b;
  82. }
  83. .main-panel{
  84. padding-left:120px;
  85. box-sizing: border-box;
  86. }
  87. .panel-sidebar{
  88. box-sizing: border-box;
  89. background: #fbfcfd;
  90. position: fixed;
  91. height: 100%;
  92. z-index: 4;
  93. left:120px;
  94. padding-top: 100px;
  95. border-right: 1px solid #ddd;
  96. width: 250px;
  97. }
  98. .panel-content{
  99. padding:115px 0 0;
  100. position: relative;
  101. z-index: 3;
  102. box-sizing: border-box;
  103. overflow-y: auto;
  104. height: 100vh;
  105. }
  106. .panel-content .content-wrap{
  107. margin:0 15px 15px;
  108. }
  109. .panel-sidebar+.panel-content{
  110. padding: 115px 0 0 250px;
  111. }
  112. .panel-title, .panel-title>.title-bar {
  113. height:50px;
  114. line-height: 50px
  115. }
  116. .panel-title{
  117. position: fixed;
  118. top: 50px;
  119. z-index: 98;
  120. width: 100%;
  121. box-sizing: border-box;
  122. background: #fff;
  123. box-shadow: 0 1px 3px rgba(0,0,0,.05);
  124. border-top: 1px solid #ddd;
  125. }
  126. .panel-sidebar .panel-title{
  127. width:250px;
  128. border-right: 1px solid #ddd;
  129. box-shadow: 0 1px 3px rgba(0,0,0,.1);
  130. }
  131. .panel-content .panel-title{
  132. left: 0;
  133. padding-left: 370px;
  134. padding-right: 20px;
  135. }
  136. .panel-content .panel-title.fluid{
  137. padding-left:120px
  138. }
  139. .panel-title>.title-bar{
  140. padding-left: 20px
  141. }
  142. .panel-title>.title-bar>h2,.panel-title>.title-main>h2{
  143. font-size: 16px;
  144. margin:0;
  145. height: 50px;
  146. line-height: 50px;
  147. display:block
  148. }
  149. .panel-title>.title-bar>h2 .btn{
  150. margin-right:15px
  151. }
  152. .panel-title>.title-main .btn.pull-right {
  153. margin:10px 0 0 10px
  154. }
  155. .panel-title>.title-main .form-control {
  156. margin:10px 0 0 0
  157. }
  158. .panel-title>.title-main{
  159. padding-left: 15px
  160. }
  161. /*滚动*/
  162. .scrollbar-auto {
  163. overflow-y: auto;
  164. position: absolute;
  165. bottom: 0;
  166. left: 0;
  167. top: 0;
  168. right: 0;
  169. }
  170. .panel-sidebar .scrollbar-auto{
  171. padding-top: 20px;
  172. box-sizing: border-box;
  173. }
  174. .panel-sidebar .scrollbar-auto {
  175. height: 100%;
  176. width: 100%;
  177. overflow-y: auto;
  178. position: static;
  179. }
  180. /*头部*/
  181. .header .logo {
  182. float: left;
  183. box-shadow: 1px 0 6px rgba(0,0,0,.06);
  184. margin-right: 20px;
  185. margin:0
  186. }
  187. .header .logo>a{
  188. width:120px;
  189. height:50px;
  190. line-height: 50px;
  191. display: inline-block;
  192. color:#fff;
  193. font-size:24px;
  194. padding:0 10px;
  195. transition: all ease .4s;
  196. background:#207fd1 url(logo.png) no-repeat;
  197. text-indent: -9999px;
  198. vertical-align: top
  199. }
  200. .header .logo>a:hover{
  201. background-color:#5596cf;
  202. text-decoration: none;
  203. }
  204. .header-user > div {
  205. float:left
  206. }
  207. .avatar .pic {
  208. height: 35px;
  209. width: 35px;
  210. border-radius: 100%;
  211. display: inline-block;
  212. float:left;
  213. margin:7px 7px 0 0
  214. }
  215. .avatar .pic img{
  216. display: block;
  217. width: 100%;
  218. height: 100%;
  219. border-radius: 100%;
  220. }
  221. .avatar > a,.msg >a{
  222. display: block;
  223. height:50px;
  224. line-height: 50px;
  225. color:#666;
  226. padding:0 15px;
  227. cursor: pointer;
  228. }
  229. .avatar > a:hover,.msg > a:hover{
  230. text-decoration: none;
  231. box-shadow: inset 0 3px 5px rgba(0,0,0,.125)
  232. }
  233. .header-user .msg{
  234. border-left:1px solid #eee
  235. }
  236. .header-user .msg .glyphicon{
  237. font-size:20px;
  238. vertical-align: middle;
  239. }
  240. .header-user .msg .badge{
  241. margin:0 0 0 5px
  242. }
  243. .header .poj-name {
  244. float:left;
  245. padding:0 0 0 15px;
  246. font-size:18px
  247. }
  248. .header .poj-name a{
  249. color:#666
  250. }
  251. .header .poj-name > span{
  252. height:50px;
  253. line-height:50px;
  254. }
  255. /*登陆相关*/
  256. .login-body{
  257. background: #fff
  258. }
  259. .login-infoinput {
  260. margin-top:15%
  261. }
  262. /*侧栏主菜单*/
  263. .nav-top{
  264. padding-top: 50px
  265. }
  266. .bg-nav a{
  267. color:#7786ab;
  268. width:120px;
  269. height: 55px;
  270. line-height: 55px;
  271. display: inline-block;
  272. padding:0 0 0 10px
  273. }
  274. .bg-nav > li{
  275. width:120px
  276. }
  277. .bg-nav > li.active{
  278. background: #192948
  279. }
  280. .bg-nav > li.active a{
  281. border-radius: 0;
  282. background: #192948
  283. }
  284. .bg-nav > li > a:hover,.bg-nav > li.active > a:hover{
  285. background: #192948;
  286. color:#f2f2f2;
  287. text-decoration: none;
  288. }
  289. .bg-nav > li + li {
  290. margin-top:0;
  291. }
  292. .bg-nav .sub-menu {
  293. list-style:none;
  294. padding:0 0 0 20px;
  295. width:120px;
  296. display: none
  297. }
  298. .bg-nav .sub-menu a {
  299. width:100px;
  300. height:30px;
  301. line-height:30px
  302. }
  303. .bg-nav .sub-menu:last-child{
  304. margin:0 0 20px 0
  305. }
  306. .bg-nav .menu-arrow{
  307. margin:22px 8px 0 0
  308. }
  309. .nav-box h3{
  310. font-size: 14px;
  311. font-weight: 700;
  312. padding-bottom: 4px;
  313. border-bottom: 1px solid #e2eaec;
  314. padding-right: 15px;
  315. margin-bottom: 10px;
  316. margin-left: 20px
  317. }
  318. .nav-list li a{
  319. color: #333;
  320. display: block;
  321. height: 35px;
  322. line-height: 35px;
  323. box-sizing: border-box;
  324. padding-left: 17px;
  325. padding-right: 45px;
  326. text-overflow: ellipsis;
  327. position: relative;
  328. }
  329. .nav-list li a:hover{
  330. text-decoration: none;
  331. background:#e4e7ea;
  332. cursor: pointer;
  333. }
  334. .nav-list li a .badge{
  335. position: absolute;
  336. right:17px;
  337. top:9px
  338. }
  339. .nav-list li.active a{
  340. background:#e4e7ea;
  341. font-weight: 600
  342. }
  343. /*内容区*/
  344. .c-header {
  345. padding:0 0 5px
  346. }
  347. .c-body{
  348. padding:15px;
  349. background:#fff;
  350. }
  351. .form-group .necessary{
  352. font-size:18px;
  353. color:#f90000
  354. }
  355. .bg-gray {
  356. background-color:#bbb!important;
  357. }