_start.scss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. html, body, header{
  2. background: #f9f9f9fe;
  3. }
  4. body{
  5. #start{
  6. width: calc( #{$Wi} - #{$marg} );
  7. margin: $marg auto auto $marg;
  8. #text_figli{
  9. p {
  10. a{
  11. position: relative;
  12. &::after{
  13. display: block;
  14. content: '';
  15. position: absolute;
  16. top: 0;
  17. left: 0;
  18. transform: translate(-25%,-65%);
  19. z-index: 999;
  20. }
  21. // &:hover{
  22. // &::after{
  23. // content: url('/user/themes/figureslibres/images/ovale.svg');
  24. // width: 100%;
  25. // height: 100%;
  26. // top: 0;
  27. // left: 0;
  28. // }
  29. // }
  30. &.marg{
  31. margin-right: $marg;
  32. }
  33. }
  34. }
  35. .card{
  36. width: calc(100% / 4);
  37. height: auto;
  38. overflow: hidden;
  39. display: inline-block;
  40. vertical-align: top;
  41. line-height: 0;
  42. margin-right: $marg;
  43. position: relative;
  44. margin-top: $marg;
  45. .card-header{
  46. display: none;
  47. & > *{
  48. font-size: 0.8rem;
  49. line-height: 1rem;
  50. margin-right: $marg;
  51. }
  52. }
  53. &:hover{
  54. .card-header{
  55. width: 100%;
  56. background: rgba(255, 255, 255, 0.5);
  57. padding: $marg;
  58. display: inline-flex;
  59. flex-wrap: wrap;
  60. position: absolute;
  61. transform: translateY(-100%);
  62. }
  63. }
  64. &:last-child{
  65. vertical-align: baseline;
  66. }
  67. }
  68. }
  69. }
  70. &:not(.home){
  71. #start{
  72. margin-top: calc( 2rem + #{$Flhome});
  73. }
  74. }
  75. }