_features.scss 2.4 KB

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