filter.scss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. #views-exposed-form-publications-page-1,
  2. #views-exposed-form-bibliographie-page-1{
  3. margin: 2rem 0;
  4. display: flex;
  5. flex-wrap: wrap;
  6. & > div{
  7. width: 100%;
  8. @media screen and (min-width: 768px) {
  9. width: calc((100% / 2) - ( #{$gutter} * 2);
  10. }
  11. @media screen and (min-width: 992px) {
  12. width: auto;
  13. }
  14. @media screen and (min-width: 992px) {
  15. margin-right: 2rem;
  16. }
  17. &:not(:last-child){
  18. margin-bottom: 1rem;
  19. @media screen and (min-width: 768px) {
  20. margin-right: calc(#{$gutter} * 2);
  21. }
  22. @media screen and (min-width: 992px) {
  23. margin-bottom: 0rem;
  24. }
  25. }
  26. label{
  27. min-width: max-content;
  28. }
  29. .select-selected{
  30. width: 100%;
  31. min-width: 150px;
  32. background-color: white;
  33. color: $color2!important;
  34. &::after{
  35. position: absolute;
  36. content: "";
  37. top: 14px;
  38. right: 10px;
  39. width: 0;
  40. height: 0;
  41. border: 6px solid transparent;
  42. border-color: $color2 transparent transparent transparent;
  43. }
  44. &.select-arrow-active{
  45. &:after{
  46. transform: rotate(180deg);
  47. top: 7px;
  48. }
  49. }
  50. }
  51. .select-items {
  52. position: absolute;
  53. background-color: $color2;
  54. top: 100%;
  55. right: 0;
  56. z-index: 99;
  57. min-width: 150px;
  58. width: 100%;
  59. }
  60. }
  61. #edit-actions{
  62. @media screen and (min-width: 768px) {
  63. display: flex;
  64. flex-wrap: nowrap;
  65. width: 100%;
  66. }
  67. @media screen and (min-width: 992px) {
  68. width: auto;
  69. }
  70. input{
  71. width: 100%;
  72. height: auto;
  73. background: $color2;
  74. color: white;
  75. border: none;
  76. outline: none;
  77. margin-top: 1rem;
  78. padding: 0.5rem 1rem;
  79. @media screen and (min-width: 768px) {
  80. max-width: 50%;
  81. margin-right: 1rem;
  82. }
  83. @media screen and (min-width: 992px) {
  84. max-width: 100%;
  85. margin-right: 0;
  86. margin-top: 0;
  87. }
  88. &:focus{
  89. border: none;
  90. outline: none;
  91. }
  92. &#edit-submit-publications{
  93. @media screen and (min-width: 768px) {
  94. margin-right: calc(#{$gutter} * 2);
  95. }
  96. }
  97. &.form-submit{
  98. margin-right: 0.75rem;
  99. }
  100. }
  101. }
  102. }
  103. // #views-exposed-form-search-page-1{
  104. // width: 100%;
  105. // max-width: 50%;
  106. // display: flex;
  107. // flex-wrap: nowrap;
  108. // margin:2rem 0;
  109. // & > div{
  110. // width: 100%;
  111. // }
  112. // @media screen and (min-width: 768px) {
  113. // max-width: 100%;
  114. // }
  115. // #edit-actions--2{
  116. // @media screen and (min-width: 768px) {
  117. // display: flex;
  118. // flex-wrap: nowrap;
  119. // width: 100%;
  120. // }
  121. // @media screen and (min-width: 992px) {
  122. // width: auto;
  123. // }
  124. // input{
  125. // width: 100%;
  126. // height: auto;
  127. // background: $color2;
  128. // color: white;
  129. // border: none;
  130. // outline: none;
  131. // margin-top: 1rem;
  132. // padding: 0.5rem 1rem;
  133. // @media screen and (min-width: 768px) {
  134. // max-width: 100%;
  135. // margin-right: 1rem;
  136. // }
  137. // @media screen and (min-width: 992px) {
  138. // max-width: 100%;
  139. // margin-right: 0;
  140. // margin-top: 0;
  141. // }
  142. // &:focus{
  143. // border: none;
  144. // outline: none;
  145. // }
  146. // &#edit-submit-publications{
  147. // @media screen and (min-width: 768px) {
  148. // margin-right: calc(#{$gutter} * 2);
  149. // }
  150. // }
  151. // }
  152. // }
  153. // }
  154. // .js-form-item-search-api-fulltext{
  155. // display: flex;
  156. // align-items: baseline;
  157. // label{
  158. // margin-right: 0.75rem;
  159. // }
  160. // input{
  161. // width: 100%;
  162. // height: auto;
  163. // background: white;
  164. // color: $color2;
  165. // border: none;
  166. // outline: none;
  167. // margin-top: 1rem;
  168. // padding: 0.5rem 1rem;
  169. // @media screen and (min-width: 768px) {
  170. // max-width: 100%;
  171. // margin-right: 1rem;
  172. // }
  173. // @media screen and (min-width: 992px) {
  174. // max-width: 100%;
  175. // margin-right: 0;
  176. // margin-top: 0;
  177. // }
  178. // &:focus{
  179. // border: none;
  180. // outline: none;
  181. // }
  182. // &#edit-submit-publications{
  183. // @media screen and (min-width: 768px) {
  184. // margin-right: calc(#{$gutter} * 2);
  185. // }
  186. // }
  187. // }
  188. // }
  189. #block-formulaireexposesearchpage-1{
  190. input{
  191. width: 100%;
  192. height: auto;
  193. background: white;
  194. color: $color2;
  195. border: none;
  196. outline: none;
  197. margin-top: 1rem;
  198. padding: 0.5rem 1rem;
  199. @media screen and (min-width: 768px) {
  200. max-width: 100%;
  201. margin-right: 1rem;
  202. }
  203. @media screen and (min-width: 992px) {
  204. max-width: 100%;
  205. margin-right: 0;
  206. margin-top: 0;
  207. }
  208. &:focus{
  209. border: none;
  210. outline: none;
  211. }
  212. &#edit-submit-publications{
  213. @media screen and (min-width: 768px) {
  214. margin-right: calc(#{$gutter} * 2);
  215. }
  216. }
  217. &.form-submit{
  218. background: $color2;
  219. color: white;
  220. }
  221. }
  222. #views-exposed-form-search-page-1{
  223. display: flex;
  224. flex-wrap: wrap;
  225. margin: 2rem 0;
  226. & > div{
  227. width: 100%;
  228. @media screen and (min-width: 768px) {
  229. &:first-child{
  230. width: 75%;
  231. }
  232. &:last-child{
  233. width: 25%;
  234. }
  235. }
  236. @media screen and (min-width: 992px) {
  237. &:first-child{
  238. max-width: 350px;
  239. }
  240. &:last-child{
  241. max-width: max-content;
  242. }
  243. }
  244. }
  245. }
  246. }
  247. .js-form-type-select {
  248. position: relative;
  249. font-family: Arial;
  250. display: inline-flex;
  251. align-items: baseline;
  252. label{
  253. margin-right: 1rem;
  254. }
  255. }
  256. .js-form-type-select select {
  257. display: none;
  258. }
  259. .select-selected.select-arrow-active:after {
  260. border-color: transparent transparent $color2 transparent;
  261. top: 7px;
  262. }
  263. .select-items div,.select-selected {
  264. color: #ffffff;
  265. padding: 8px 30px 8px 16px;
  266. border: 1px solid transparent;
  267. border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  268. cursor: pointer;
  269. }
  270. .select-hide {
  271. display: none;
  272. }
  273. .select-items div:hover, .same-as-selected {
  274. background-color: rgba(0, 0, 0, 0.1);
  275. }