_start.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. *{
  2. box-sizing: border-box;
  3. }
  4. html, body, header{
  5. background: #f9f9f9fe;
  6. }
  7. body{
  8. #start{
  9. width: $Wi50;
  10. margin: $marg auto auto $marg;
  11. #text_figli{
  12. p {
  13. a{
  14. position: relative;
  15. &.marg{
  16. margin-right: $marg;
  17. }
  18. }
  19. }
  20. #item_list{
  21. width: 80vw;
  22. .card{
  23. width: calc((100% / 5) - ( #{$marg} * 2) );
  24. height: auto;
  25. // overflow: hidden;
  26. display: inline-block;
  27. vertical-align: top;
  28. line-height: 0;
  29. margin-right: $marg;
  30. position: relative;
  31. margin-top: $marg;
  32. a{
  33. display: block;
  34. }
  35. .card-header{
  36. display: none;
  37. & > *{
  38. font-size: 0.8rem;
  39. line-height: 1rem;
  40. margin-right: $marg;
  41. }
  42. }
  43. &:hover{
  44. .card-header{
  45. width: 100%;
  46. background: rgba(255, 255, 255, 0.5);
  47. padding: $marg;
  48. display: inline-flex;
  49. flex-wrap: wrap;
  50. position: absolute;
  51. transform: translateY(-100%);
  52. }
  53. }
  54. &:last-of-type{
  55. vertical-align: baseline!important;
  56. }
  57. #item{
  58. width: calc( 307% - #{$marg} );
  59. .content-title{
  60. margin: 30px auto;
  61. a{
  62. display: block;
  63. }
  64. }
  65. .e-content{
  66. margin: 30px auto;
  67. p{
  68. font-size: 1rem;
  69. line-height: 1rem;
  70. }
  71. }
  72. }
  73. }
  74. }
  75. }
  76. }
  77. &:not(.home){
  78. #start{
  79. margin-top: calc( 2rem + #{$Flhome});
  80. }
  81. }
  82. }