css.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. *{
  2. /* 设置宽度的计算方法 */
  3. /* -webkit-box-sizing: border-box;
  4. -moz-box-sizing: border-box;
  5. box-sizing: border-box;
  6. -webkit-transition: background 200ms;
  7. -moz-transition: background 200ms;
  8. -ms-transition: background 200ms;
  9. -o-transition: background 200ms;
  10. transition: background 200ms; */
  11. /* background: rgba(0, 0, 0, .1); */
  12. /* 设置超出内容自动换行 */
  13. word-wrap: break-word;
  14. word-break: break-all;
  15. /* overflow: hidden; */
  16. }
  17. img {
  18. display: block;
  19. /* 最大宽度不能超过母元素 */
  20. max-width: 100%;
  21. border-radius: 3px;
  22. }
  23. .navbar {
  24. margin-bottom: 0px;
  25. }
  26. .container {
  27. width: 1500px;
  28. }
  29. .row{
  30. text-align: center;
  31. height: 80%;
  32. }
  33. .filter{
  34. height: 30px;
  35. line-height: 30px;
  36. margin-bottom: 0px;
  37. }
  38. .table{
  39. font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  40. font-size: 14px;
  41. color: #2c3a46;
  42. }
  43. .navbar-brand{
  44. width: 60px;
  45. background-image: url(../img/logo.png);
  46. background-repeat: no-repeat;
  47. background-size: 60%;
  48. background-position: center center;
  49. }
  50. .side-bar .list-group-item{
  51. /* 设置边框 */
  52. border: 0px;
  53. border-radius: 3px;
  54. margin: 5px;
  55. }
  56. /* 设置激活状态下的颜色 */
  57. .side-bar .active{
  58. background-color: #ea0c3c ;
  59. }
  60. /* 设置外边距 */
  61. .news-list-item{
  62. padding-top: 10px;
  63. padding-bottom: 10px;
  64. border-bottom: 1px solid #eee;
  65. }
  66. /* 设置第一个元素外边距无 */
  67. .news-list-item:first-child{
  68. padding-top: 0px;
  69. }
  70. .news-list-item .title{
  71. display: block;
  72. /* 去除下划线 */
  73. text-decoration: none;
  74. font-size: 8px;
  75. font-weight: bold;
  76. padding-bottom:10px ;
  77. line-height: 1.5;
  78. color:#ea0c3c;
  79. }
  80. .news-list-item .title:hover{
  81. color:#999;
  82. }
  83. .news-list-item .info{
  84. color: #999;
  85. }
  86. .news-list-item .avatar{
  87. display: inline-block;
  88. }
  89. .news-list-item .avatar img{
  90. display: inline-block;
  91. width: 16px;
  92. height: 16px;
  93. margin-right: 5px;
  94. }
  95. .side-bar-card{
  96. background: rgb(0, 0,0, .05);
  97. margin-top: 15px;
  98. }
  99. .side-bar-card .flag{
  100. margin-top: 20px;
  101. }
  102. .side-bar-card .text-lg{
  103. font-size: 100%;
  104. font-weight: bold;
  105. padding-top: 8px;
  106. }
  107. .side-bar-card .card-title,
  108. .side-bar-card .card-body .list .item {
  109. padding:10px 15px;
  110. }
  111. .side-bar-card .card-title {
  112. font-size: 17px;
  113. font-weight: bold;
  114. padding-top: 10px;
  115. padding-bottom: 0;
  116. }
  117. .side-bar-card .card-body .list .item{
  118. font-size: 12px;
  119. }
  120. .side-bar-card .card-body .list .desc{
  121. font-size: 5px;
  122. color: #999;
  123. }
  124. .side-bar-card .card-body .list .item:hover {
  125. background: rgba(0, 0, 0 ,.05);
  126. }
  127. .news-title{
  128. line-height: 1.3;
  129. }
  130. .news-status{
  131. color: #999;
  132. }
  133. .news-status .label{
  134. opacity: 0.8;
  135. }
  136. .news-contents{
  137. margin-top: 20px;
  138. font-size: 15px;
  139. line-height: 1.5;
  140. }
  141. .news-contents img{
  142. margin-top: 10px;
  143. margin-bottom: 10px;
  144. }
  145. .on-padding-h{
  146. padding-left: 0px;
  147. padding-right: 0px;
  148. }
  149. .footer{
  150. margin-top: 20px;
  151. padding: 20px 0;
  152. /* 设置文字垂直居中 */
  153. text-align: center;
  154. }
  155. .container-small {
  156. max-width: 500px;
  157. margin: 0 auto;
  158. }
  159. .btn-primary {
  160. background-color: #ea0c3c;
  161. border-color: #ea0c3c;
  162. }
  163. .btn-primary:hover,
  164. .btn-primary.focus,
  165. .btn-primary:focus,
  166. .btn-primary.active, .btn-primary:active, .open>.dropdown-toggle.btn-primary,
  167. .btn-primary.active.focus, .btn-primary.active:focus, .btn-primary.active:hover, .btn-primary:active.focus, .btn-primary:active:focus, .btn-primary:active:hover, .open>.dropdown-toggle.btn-primary.focus, .open>.dropdown-toggle.btn-primary:focus, .open>.dropdown-toggle.btn-primary:hover {
  168. background-color: #d00e38;
  169. border-color: #d00e38;
  170. }
  171. /* 设置#toggle-checkbox此div当状态为checked时里面所有的div的内容隐藏 */
  172. #toggle-checkbox:checked ~ div{
  173. /* !important用于设置最高权重 */
  174. display: block !important;
  175. }
  176. /* 当屏幕为大尺寸时不显示此元素 */
  177. #toggle-label{
  178. display: inline-block;
  179. position: absolute;
  180. right: 7px;
  181. top: 15px;
  182. display: none;
  183. }