_widget.less 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. .m_widget{
  2. &:extend(.z-depth-1);
  3. background: @white;
  4. margin-bottom: @gap;
  5. // .header,.content{
  6. // padding: 0 @gap;
  7. // }
  8. .header{
  9. &:before{
  10. content: '#';
  11. margin-left: -10px;
  12. margin-right: 10px;
  13. color: @secondary-color;
  14. }
  15. font-size: 1.2rem;
  16. line-height: 2rem;
  17. padding: 8px @gap;
  18. }
  19. .content{
  20. border-top: 1px solid fade(@black,10%);
  21. padding: @gap/2 0;
  22. }
  23. ul.entry > li > a{
  24. padding: 0 @gap;
  25. line-height:@item-height;
  26. height: @item-height;
  27. display: flex;
  28. justify-content: space-between;
  29. align-content: center;
  30. .name{
  31. flex:auto;
  32. &:extend(.txt-ellipsis);
  33. color: darken(@grey-color,10%);
  34. }
  35. .badget{
  36. flex:none;
  37. color: @grey-color;
  38. }
  39. &:hover{
  40. background:fade(black,8%);
  41. }
  42. }
  43. }
  44. .m_widget.about{
  45. .waves-effect,img{
  46. width: 100%;
  47. display: block;
  48. }
  49. @media(max-width: @on-phone){
  50. display:none;
  51. }
  52. .content{
  53. padding:0;
  54. .desc{
  55. position: relative;
  56. padding: @gap;
  57. background:@qoute-background-color;
  58. .enable-trans(.15s);
  59. line-height: 1.2em;
  60. font-style: italic;
  61. &:before{
  62. content:'';
  63. position: absolute;
  64. left:0;
  65. top:0;
  66. width:2px;
  67. height:100%;
  68. background:@secondary-color;
  69. }
  70. &:empty{
  71. padding:0;
  72. height: 0;
  73. }
  74. }
  75. }
  76. }
  77. .m_widget.tagcloud{
  78. .content{
  79. padding: 10px 20px;
  80. a{
  81. display:inline-block;
  82. .enable-trans(.1s);
  83. line-height: 1.6em;
  84. &:hover{
  85. color: @accent-color !important; //to cover inline style.
  86. text-decoration: underline
  87. }
  88. }
  89. }
  90. }