_page-mon-espace-de-travail.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. %hoveryellow{
  2. :hover{
  3. background-color: $yellow-puca;
  4. }
  5. }
  6. .page-mon-espace-de-travail{
  7. .layout-content{
  8. padding-bottom: 3rem;
  9. #block-reha-titredepage{
  10. text-align: center;
  11. }
  12. width: 80%;
  13. margin-left: 8%;
  14. .field--type-file{
  15. background-color: transparent;
  16. border: none;
  17. }
  18. .js-form-type-textfield{
  19. flex-direction: row;
  20. label{margin-right: 1rem;}
  21. align-content: center;
  22. }
  23. }
  24. .description{
  25. font-style: italic;
  26. text-transform: none;
  27. }
  28. .paragraph-top{
  29. .paragraph-type{
  30. display: none;
  31. }
  32. }
  33. summary{
  34. text-transform: none;
  35. }
  36. #edit-field-dossier-de-pilotage-wrapper,
  37. #edit-field-dossier-evenement-wrapper{
  38. border-top: solid 1px black;
  39. margin-top: 2rem;
  40. h4{
  41. margin: 0;
  42. margin-top: 2rem;
  43. padding-left: 0;
  44. }
  45. #field-dossier-values--2{
  46. padding-left: 4rem;
  47. // border-left: solid black 1px;
  48. }
  49. .field-multiple-drag{
  50. border-left: solid black 1px;
  51. }
  52. }
  53. #edit-field-dossier-de-pilotage-0-subform-field-fichiers-table{
  54. display: none;
  55. }
  56. .paragraph-type--dossier{
  57. background-color: white;
  58. h4{
  59. display: none;
  60. }
  61. }
  62. /* On cache le texte mais on le garde accessible */
  63. .description {
  64. position: relative;
  65. display: inline-block;
  66. color: transparent; /* rend le texte invisible */
  67. font-size: 0; /* supprime l'espace du texte */
  68. }
  69. /* On crée l’icône "i" */
  70. .description::before {
  71. content: "i";
  72. display: inline-block;
  73. width: 20px;
  74. height: 20px;
  75. line-height: 20px;
  76. border-radius: 50%;
  77. background-color: #333;
  78. color: #fff;
  79. text-align: center;
  80. font-weight: bold;
  81. font-size: 14px;
  82. cursor: pointer;
  83. // font-family: Arial, sans-serif;
  84. }
  85. /* Tooltip : on réaffiche le vrai texte stocké */
  86. .description::after {
  87. content: attr(data-text); /* On va injecter le texte via un attribut */
  88. visibility: hidden;
  89. opacity: 0;
  90. width: 250px;
  91. background-color: #333;
  92. color: #fff;
  93. text-align: left;
  94. border-radius: 6px;
  95. padding: 8px;
  96. position: absolute;
  97. z-index: 1;
  98. top: 120%;
  99. left: 50%;
  100. transform: translateX(-50%);
  101. transition: opacity 0.3s;
  102. font-size: 13px;
  103. line-height: 1.4;
  104. pointer-events: none;
  105. }
  106. /* Affichage au survol */
  107. .description:hover::after {
  108. visibility: visible;
  109. opacity: 1;
  110. }
  111. }
  112. // #edit-field-dossier-de-pilotage-wrapper
  113. .field--name-field-dossier-de-pilotage h4{
  114. ::after{
  115. content: "";
  116. border-top: solid 1px black;
  117. }
  118. }
  119. .messages--error{
  120. color:red;
  121. }