main.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. a:hover{
  2. text-decoration: none;
  3. }
  4. img{
  5. display: block;
  6. width: 100%;
  7. }
  8. img, .side-bar .list-group-item,
  9. .side-bar-card{
  10. border-radius: 3px;
  11. }
  12. .navbar-brand{
  13. background-image: url(../img/logo.png);
  14. width: 50px;
  15. background-size: 75%;
  16. background-repeat: no-repeat;
  17. background-position: center center;
  18. }
  19. .side-bar .list-group-item{
  20. border: 0;
  21. margin-bottom: 5px;
  22. }
  23. .side-bar .list-group-item.active{
  24. background-color: #ea0c3c
  25. }
  26. .news-list-item{
  27. padding-top: 15px;
  28. padding-bottom: 15px;
  29. border-bottom: 1px solid #eee;
  30. }
  31. /* 特殊选择器:第一个元素 */
  32. .news-list-item:first-child{
  33. padding-top: 0;
  34. }
  35. .news-list-item .title{
  36. display: block;
  37. color: #444;
  38. font-size: 18px;
  39. font-weight: bold;
  40. margin-bottom: 5px;
  41. line-height: 1.5;
  42. }
  43. .news-list-item .title:hover{
  44. color:#337ab7
  45. }
  46. .news-list-item .info{
  47. color: #888;
  48. }
  49. .avatar{
  50. display: inline-block
  51. }
  52. .avatar img{
  53. display: inline-block;
  54. width: 16px;
  55. height: 16px;
  56. margin-right: 5px;
  57. }
  58. .side-bar-card{
  59. background: rgba(0,0,0,.05);
  60. margin-top: 15px;
  61. padding: 20px 0;
  62. }
  63. .side-bar-card .flag{
  64. padding-top: 20px;
  65. padding-bottom: 20px;
  66. }
  67. .side-bar-card .text-lg{
  68. font-size: 150%;
  69. }
  70. .side-bar-card .card-title,
  71. .side-bar-card .card-body .list .item{
  72. padding: 10px 15px;
  73. }
  74. .side-bar-card .card-body .list .item:hover{
  75. background: rgba(0,0,0,.05)
  76. }
  77. .side-bar-card .card-title{
  78. font-size: 18px;
  79. font-weight: bold;
  80. padding-top: 0;
  81. padding-bottom: 0;
  82. }
  83. .card-body .list .item .title{
  84. padding-bottom: 10px;
  85. }
  86. .card-body .list .item .desc{
  87. color: #999;
  88. }
  89. .news-title{
  90. line-height: 1.5;
  91. }
  92. .news-status{
  93. color: #999;
  94. }
  95. .news-status .label{
  96. opacity: .8/**透明度**/
  97. }
  98. .news-content{
  99. margin-top: 20px;
  100. font-size: 15px;
  101. line-height: 1.5;
  102. }
  103. .news-content img{
  104. margin-top: 10px;
  105. margin-bottom: 10px;
  106. }
  107. .no-padding-h{
  108. padding-left: 0;
  109. padding-right: 0;
  110. }
  111. .footer{
  112. margin-top: 20px;
  113. padding: 50px 0;
  114. text-align: center;
  115. color: #999;
  116. }
  117. .container-small{
  118. max-width: 500px;
  119. }
  120. .btn-primary{
  121. background-color: #ea0c3c;
  122. border-color: #db0d3a
  123. }
  124. .btn-primary:hover{
  125. background-color: #cf1b42 ;
  126. border-color: #db0d3a
  127. }
  128. /** 移动端适应部分 **/
  129. #toggle-checkbox:checked ~div{ /** ~表示底下的元素 **/
  130. display: block !important;
  131. }
  132. #toggle-label{
  133. display: inline-block;
  134. position: absolute;
  135. right: 15px;
  136. top: 13px;
  137. font-size: 16px;
  138. font-weight: normal;
  139. color: #666;
  140. display: none;
  141. }
  142. #toggle-label:hover{
  143. color: #333;
  144. }