formstyle.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <style>
  2. .news-left {
  3. width: 300px;
  4. float: left;
  5. margin-right: 15px;
  6. }
  7. .news-right {
  8. overflow: hidden;
  9. width: 980px;
  10. position: relative;
  11. display: inline-block;
  12. }
  13. .news-left .news-item {
  14. height: 150px;
  15. cursor: pointer;
  16. max-width: 270px;
  17. overflow: hidden;
  18. position: relative;
  19. border-radius: 5px;
  20. border: 1px solid #ccc;
  21. background-size: cover;
  22. background-position: center center
  23. }
  24. .news-left .news-item.active {
  25. border: 1px solid #44b549 !important;
  26. box-shadow: 0 0 5px 0 #44b549;
  27. }
  28. .news-left .article-add {
  29. color: #999;
  30. display: block;
  31. font-size: 22px;
  32. text-align: center
  33. }
  34. .news-left .article-add:hover {
  35. color: #666
  36. }
  37. .news-left .news-title {
  38. bottom: 0;
  39. color: #fff;
  40. width: 272px;
  41. display: block;
  42. padding: 0 5px;
  43. max-height: 6em;
  44. overflow: hidden;
  45. margin-left: -1px;
  46. position: absolute;
  47. text-overflow: ellipsis;
  48. background: rgba(0, 0, 0, .7)
  49. }
  50. .news-left .news-item a {
  51. color: #fff;
  52. width: 30px;
  53. height: 30px;
  54. float: right;
  55. font-size: 12px;
  56. margin-top: -1px;
  57. line-height: 34px;
  58. text-align: center;
  59. margin-right: -1px;
  60. background-color: rgba(0, 0, 0, .5)
  61. }
  62. .news-left .news-item:hover a {
  63. display: inline-block !important
  64. }
  65. .news-left .news-item a:hover {
  66. text-decoration: none;
  67. background-color: #0C0C0C
  68. }
  69. .news-right .upload-image-box {
  70. width: 130px;
  71. height: 90px;
  72. border-radius: 5px;
  73. box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2);
  74. background: url("__ROOT__/static/theme/img/image.png") no-repeat center center;
  75. background-size: cover;
  76. }
  77. </style>