form-style.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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: 1px solid #ccc;
  20. background-size: cover;
  21. background-position: center center
  22. }
  23. .news-left .news-item.active {
  24. border: 1px solid #44b549 !important
  25. }
  26. .news-left .article-add {
  27. color: #999;
  28. display: block;
  29. font-size: 22px;
  30. text-align: center
  31. }
  32. .news-left .article-add:hover {
  33. color: #666
  34. }
  35. .news-left .news-title {
  36. bottom: 0;
  37. color: #fff;
  38. width: 272px;
  39. display: block;
  40. padding: 0 5px;
  41. max-height: 6em;
  42. overflow: hidden;
  43. margin-left: -1px;
  44. position: absolute;
  45. text-overflow: ellipsis;
  46. background: rgba(0, 0, 0, .7)
  47. }
  48. .news-left .news-item a {
  49. color: #fff;
  50. width: 30px;
  51. height: 30px;
  52. float: right;
  53. font-size: 12px;
  54. margin-top: -1px;
  55. line-height: 34px;
  56. text-align: center;
  57. margin-right: -1px;
  58. background-color: rgba(0, 0, 0, .5)
  59. }
  60. .news-left .news-item:hover a {
  61. display: inline-block !important
  62. }
  63. .news-left .news-item a:hover {
  64. text-decoration: none;
  65. background-color: #0C0C0C
  66. }
  67. .news-right .upload-image-box {
  68. width: 130px;
  69. height: 90px;
  70. border: 1px solid rgba(125, 125, 125, .1);
  71. background: url("__ROOT__/static/plugs/uploader/theme/image.png") no-repeat center center;
  72. background-size: cover;
  73. }
  74. </style>