_features.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. // Modular Ressources styling
  2. .modular {
  3. .titre_nsb h1 {
  4. text-transform: uppercase;
  5. text-align: right;
  6. padding-right: 50%;
  7. }
  8. .features {
  9. width: 75%;
  10. margin: auto;
  11. @include clearfix;
  12. h2 {
  13. margin: 0;
  14. line-height: 100%;
  15. }
  16. p {
  17. margin: 1rem 0;
  18. font-size: $core-font-size + 0.2rem;
  19. @include breakpoint(mobile-only) {
  20. font-size: $core-font-size;
  21. }
  22. }
  23. .feature-items {
  24. margin-top: 2rem;
  25. @supports not (flex-wrap: wrap) {
  26. overflow: hidden;
  27. }
  28. }
  29. .feature {
  30. display:block;
  31. float: left;
  32. width: 20%;
  33. vertical-align: top;
  34. margin-top: 2rem;
  35. margin-right: 3rem;
  36. margin-bottom: 1rem;
  37. @include breakpoint(large-mobile-range) {
  38. margin-top: 1rem;
  39. width: 50%;
  40. }
  41. @include breakpoint(small-mobile-range) {
  42. margin-top: 1rem;
  43. width: 100%;
  44. }
  45. i.fa {
  46. font-size: 2rem;
  47. color: $core-accent;
  48. }
  49. h4 {
  50. margin: 0;
  51. font-size: 1.1rem;
  52. text-align: left;
  53. }
  54. p {
  55. display: inline-block;
  56. font-size: $core-font-size - 0.20;
  57. margin: 0.2rem 0 1rem;
  58. }
  59. img {
  60. width: 45%;
  61. display: block;
  62. }
  63. }
  64. &.big {
  65. text-align: center;
  66. .feature {
  67. width: 50%;
  68. @include breakpoint(small-mobile-range) {
  69. margin-top: 1rem;
  70. width: 100%;
  71. }
  72. }
  73. i.fa {
  74. font-size: 3rem;
  75. float: left;
  76. }
  77. .feature-content {
  78. padding-right: 2rem;
  79. &.icon-offset {
  80. margin-left: 5rem;
  81. }
  82. h4 {
  83. font-size: 1.3rem;
  84. text-align: left;
  85. }
  86. p {
  87. padding: 0;
  88. text-align: left;
  89. }
  90. }
  91. }
  92. }
  93. }