@saooti/octopus-sdk 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/README.md +261 -0
  2. package/index.d.ts +4 -0
  3. package/index.ts +55 -3
  4. package/package.json +53 -45
  5. package/public/config.ts +4 -0
  6. package/public/css/fonts/icomoon.eot +0 -0
  7. package/public/css/fonts/icomoon.svg +129 -0
  8. package/public/css/fonts/icomoon.ttf +0 -0
  9. package/public/css/fonts/icomoon.woff +0 -0
  10. package/public/css/fonts/style.css +186 -1224
  11. package/public/img/403.jpeg +0 -0
  12. package/public/img/404.svg +242 -0
  13. package/public/img/ACPM.png +0 -0
  14. package/public/img/ouest_france_logo.svg +12 -0
  15. package/src/App.vue +102 -31
  16. package/src/api/classicCrud.ts +34 -0
  17. package/src/api/initialize.ts +5 -2
  18. package/src/assets/bootstrap-diff.scss +197 -0
  19. package/src/assets/form.scss +77 -77
  20. package/src/assets/general.scss +284 -272
  21. package/src/assets/live.scss +39 -0
  22. package/src/assets/modal.scss +43 -50
  23. package/src/assets/multiselect.scss +522 -573
  24. package/src/assets/octopus-library.scss +18 -4
  25. package/src/assets/share.scss +243 -0
  26. package/src/assets/transition.scss +98 -2
  27. package/src/components/display/aggregator/RssSection.vue +3 -5
  28. package/src/components/display/categories/CategoryChooser.vue +151 -114
  29. package/src/components/display/categories/CategoryFilter.vue +162 -0
  30. package/src/components/display/categories/CategoryList.vue +149 -117
  31. package/src/components/display/comments/AddCommentModal.vue +103 -108
  32. package/src/components/display/comments/CommentBasicView.vue +95 -0
  33. package/src/components/display/comments/CommentInput.vue +195 -183
  34. package/src/components/display/comments/CommentItem.vue +170 -208
  35. package/src/components/display/comments/CommentList.vue +134 -228
  36. package/src/components/display/comments/CommentParentInfo.vue +28 -62
  37. package/src/components/display/comments/CommentPlayer.vue +53 -56
  38. package/src/components/display/comments/CommentSection.vue +52 -83
  39. package/src/components/display/edit/EditBox.vue +10 -4
  40. package/src/components/display/edit/EditCommentBox.vue +124 -38
  41. package/src/components/display/emission/EmissionChooser.vue +88 -108
  42. package/src/components/display/emission/EmissionInlineList.vue +156 -157
  43. package/src/components/display/emission/EmissionItem.vue +72 -226
  44. package/src/components/display/emission/EmissionList.vue +159 -201
  45. package/src/components/display/emission/EmissionPlayerItem.vue +203 -174
  46. package/src/components/display/filter/AdvancedSearch.vue +224 -432
  47. package/src/components/display/filter/CategoryFilter.vue +105 -0
  48. package/src/components/display/filter/MonetizableFilter.vue +18 -15
  49. package/src/components/display/filter/ProductorSearch.vue +153 -176
  50. package/src/components/display/filter/RubriqueChoice.vue +97 -0
  51. package/src/components/display/filter/RubriqueFilter.vue +232 -0
  52. package/src/components/display/list/ListPaginate.vue +145 -0
  53. package/src/components/display/list/Paginate.vue +218 -0
  54. package/src/components/display/live/CountDown.vue +31 -30
  55. package/src/components/display/live/LiveHorizontalList.vue +84 -62
  56. package/src/components/display/live/LiveItem.vue +161 -186
  57. package/src/components/display/live/LiveList.vue +184 -295
  58. package/src/components/display/organisation/OrganisationChooser.vue +124 -162
  59. package/src/components/display/organisation/OrganisationChooserLight.vue +53 -56
  60. package/src/components/display/participant/ParticipantItem.vue +91 -128
  61. package/src/components/display/participant/ParticipantList.vue +134 -121
  62. package/src/components/display/playlist/PlaylistItem.vue +60 -97
  63. package/src/components/display/playlist/PlaylistList.vue +99 -92
  64. package/src/components/display/playlist/PodcastList.vue +117 -132
  65. package/src/components/display/playlist/PodcastPlaylistInlineList.vue +191 -0
  66. package/src/components/display/podcasts/AnimatorsItem.vue +29 -37
  67. package/src/components/display/podcasts/ParticipantDescription.vue +82 -0
  68. package/src/components/display/podcasts/PodcastFilterList.vue +49 -102
  69. package/src/components/display/podcasts/PodcastImage.vue +208 -225
  70. package/src/components/display/podcasts/PodcastInlineList.vue +62 -355
  71. package/src/components/display/podcasts/PodcastInlineListClassic.vue +240 -0
  72. package/src/components/display/podcasts/PodcastInlineListTemplate.vue +167 -0
  73. package/src/components/display/podcasts/PodcastItem.vue +94 -218
  74. package/src/components/display/podcasts/PodcastItemInfo.vue +166 -0
  75. package/src/components/display/podcasts/PodcastList.vue +127 -178
  76. package/src/components/display/podcasts/PodcastModuleBox.vue +234 -0
  77. package/src/components/display/podcasts/PodcastPlayBar.vue +101 -0
  78. package/src/components/display/podcasts/PodcastSwiperList.vue +204 -0
  79. package/src/components/display/podcasts/TagList.vue +60 -38
  80. package/src/components/display/rubriques/RubriqueChooser.vue +144 -131
  81. package/src/components/display/rubriques/RubriqueList.vue +216 -0
  82. package/src/components/display/sharing/PlayerParameters.vue +111 -153
  83. package/src/components/display/sharing/QrCode.vue +96 -0
  84. package/src/components/display/sharing/ShareButtons.vue +63 -233
  85. package/src/components/display/sharing/ShareButtonsIntern.vue +225 -0
  86. package/src/components/display/sharing/ShareDistribution.vue +102 -166
  87. package/src/components/display/sharing/SharePlayer.vue +189 -353
  88. package/src/components/display/sharing/SharePlayerColors.vue +78 -0
  89. package/src/components/display/sharing/SharePlayerTypes.vue +112 -0
  90. package/src/components/display/sharing/SplitButton.vue +42 -0
  91. package/src/components/display/sharing/SubscribeButtons.vue +65 -118
  92. package/src/components/display/studio/RecordingItemButton.vue +3 -5
  93. package/src/components/form/ClassicCheckbox.vue +66 -0
  94. package/src/components/form/ClassicLoading.vue +28 -0
  95. package/src/components/form/ClassicRadio.vue +66 -0
  96. package/src/components/form/ClassicSearch.vue +86 -0
  97. package/src/components/form/ClassicSelect.vue +65 -0
  98. package/src/components/misc/ErrorMessage.vue +27 -18
  99. package/src/components/misc/Footer.vue +151 -108
  100. package/src/components/misc/HomeDropdown.vue +95 -154
  101. package/src/components/misc/LeftMenu.vue +137 -206
  102. package/src/components/misc/Popover.vue +118 -0
  103. package/src/components/misc/Snackbar.vue +73 -37
  104. package/src/components/misc/TopBar.vue +211 -314
  105. package/src/components/misc/modal/ClipboardModal.vue +34 -47
  106. package/src/components/misc/modal/MessageModal.vue +74 -53
  107. package/src/components/misc/modal/NewsletterModal.vue +272 -224
  108. package/src/components/misc/modal/QrCodeModal.vue +58 -0
  109. package/src/components/misc/modal/ShareModalPlayer.vue +140 -74
  110. package/src/components/misc/player/Player.vue +146 -0
  111. package/src/components/misc/player/PlayerCompact.vue +154 -0
  112. package/src/components/misc/player/PlayerLarge.vue +166 -0
  113. package/src/components/misc/player/PlayerProgressBar.vue +112 -0
  114. package/src/components/misc/player/PlayerTimeline.vue +61 -0
  115. package/src/components/mixins/functions.ts +21 -18
  116. package/src/components/mixins/handle403.ts +17 -0
  117. package/src/components/mixins/init.ts +24 -0
  118. package/src/components/mixins/orgaComputed.ts +15 -0
  119. package/src/components/mixins/organisationFilter.ts +41 -0
  120. package/src/components/mixins/player/playerComment.ts +98 -0
  121. package/src/components/mixins/player/playerDisplay.ts +113 -0
  122. package/src/components/mixins/player/playerLive.ts +111 -0
  123. package/src/components/mixins/player/playerLogic.ts +225 -0
  124. package/src/components/mixins/tagOfMixins.ts +19 -0
  125. package/src/components/pages/Category.vue +24 -28
  126. package/src/components/pages/Emission.vue +144 -177
  127. package/src/components/pages/Emissions.vue +94 -110
  128. package/src/components/pages/Error403Page.vue +60 -0
  129. package/src/components/pages/Home.vue +74 -21
  130. package/src/components/pages/Lives.vue +53 -58
  131. package/src/components/pages/PageNotFound.vue +55 -0
  132. package/src/components/pages/Participant.vue +113 -129
  133. package/src/components/pages/Participants.vue +25 -41
  134. package/src/components/pages/Playlist.vue +86 -86
  135. package/src/components/pages/Playlists.vue +33 -52
  136. package/src/components/pages/Podcast.vue +206 -478
  137. package/src/components/pages/Podcasts.vue +112 -156
  138. package/src/components/pages/Rubrique.vue +21 -27
  139. package/src/components/pages/Search.vue +37 -94
  140. package/src/helper/dom.ts +2 -2
  141. package/src/helper/duration.ts +18 -8
  142. package/src/helper/useEventListener.ts +18 -0
  143. package/src/i18n.ts +36 -0
  144. package/src/locale/de.ts +309 -0
  145. package/src/locale/educationen.ts +14 -0
  146. package/src/locale/en.ts +316 -1
  147. package/src/locale/es.ts +309 -0
  148. package/src/locale/fr.ts +47 -15
  149. package/src/locale/it.ts +307 -0
  150. package/src/locale/messages.ts +11 -2
  151. package/src/locale/sl.ts +309 -0
  152. package/src/main.ts +64 -55
  153. package/src/router/router.ts +192 -159
  154. package/src/sass/_variables.scss +10 -8
  155. package/src/shims-tsx.d.ts +15 -0
  156. package/src/shims-vue-recaptcha-v3.d.ts +9 -0
  157. package/src/shims-vue.d.ts +5 -6
  158. package/src/store/AppStore.ts +41 -173
  159. package/src/store/class/adserver/adserverConfig.ts +9 -0
  160. package/src/store/class/adserver/adserverOtherEmission.ts +13 -0
  161. package/src/store/class/adserver/adserverTiming.ts +10 -0
  162. package/src/store/class/cartouchier/cartouche.ts +15 -0
  163. package/src/store/class/cartouchier/cartouchier.ts +9 -0
  164. package/src/store/class/conference/conference.ts +35 -0
  165. package/src/store/class/conference/conferenceMessage.ts +10 -0
  166. package/src/store/class/conference/conferenceParticipant.ts +18 -0
  167. package/src/store/class/conference/pad.ts +15 -0
  168. package/src/store/class/conference/studioCall.ts +7 -0
  169. package/src/store/class/contract/contract.ts +7 -0
  170. package/src/store/class/contract/contractOrganisation.ts +7 -0
  171. package/src/store/class/ftp/ftpEmission.ts +41 -0
  172. package/src/store/class/ftp/ftpParam.ts +12 -0
  173. package/src/store/class/ftp/testFtpEmission.ts +5 -0
  174. package/src/store/class/general/audioView.ts +21 -0
  175. package/src/store/class/general/category.ts +10 -0
  176. package/src/store/class/general/comment.ts +16 -0
  177. package/src/store/class/general/customPlayer.ts +9 -0
  178. package/src/store/class/general/emission.ts +23 -0
  179. package/src/store/class/general/fetchParam.ts +3 -0
  180. package/src/store/class/general/initState.ts +25 -0
  181. package/src/store/class/general/interfacePageable.ts +16 -0
  182. package/src/store/class/general/ituneCategory.ts +5 -0
  183. package/src/store/class/general/media.ts +14 -0
  184. package/src/store/class/general/organisation.ts +20 -0
  185. package/src/store/class/general/pageable.ts +13 -0
  186. package/src/store/class/general/participant.ts +12 -0
  187. package/src/store/class/general/player.ts +14 -0
  188. package/src/store/class/general/playlist.ts +13 -0
  189. package/src/store/class/general/podcast.ts +43 -0
  190. package/src/store/class/general/sortPageable.ts +5 -0
  191. package/src/store/class/general/soundcastCategory.ts +8 -0
  192. package/src/store/class/ouestFrance/ofTag.ts +36 -0
  193. package/src/store/class/ouestFrance/ofTagInfo.ts +9 -0
  194. package/src/store/class/ouestFrance/ofTagPage.ts +7 -0
  195. package/src/store/class/ouestFrance/ofTagSeo.ts +7 -0
  196. package/src/store/class/ouestFrance/ofTagVente.ts +6 -0
  197. package/src/store/class/ouestFrance/ofTagWithParents.ts +26 -0
  198. package/src/store/class/rss/aggregator.ts +28 -0
  199. package/src/store/class/rss/rssEmission.ts +14 -0
  200. package/src/store/class/rss/rssInfo.ts +8 -0
  201. package/src/store/class/rubrique/rubriquage.ts +10 -0
  202. package/src/store/class/rubrique/rubriquageFilter.ts +6 -0
  203. package/src/store/class/rubrique/rubrique.ts +9 -0
  204. package/src/store/class/stat/statArrayIncome.ts +6 -0
  205. package/src/store/class/stat/statArrayObject.ts +34 -0
  206. package/src/store/class/stat/statGraph.ts +7 -0
  207. package/src/store/class/user/person.ts +15 -0
  208. package/src/store/class/user/profile.ts +12 -0
  209. package/src/store/class/user/userKeycloak.ts +24 -0
  210. package/src/store/paramStore.ts +222 -217
  211. package/src/store/typeAppStore.ts +186 -235
  212. package/src/vuex-shim.d.ts +8 -0
  213. package/tsconfig.json +4 -0
  214. package/vue.config.js +16 -0
  215. package/public/css/fonts/saooti-ui.eot +0 -0
  216. package/public/css/fonts/saooti-ui.svg +0 -829
  217. package/public/css/fonts/saooti-ui.ttf +0 -0
  218. package/public/css/fonts/saooti-ui.woff +0 -0
  219. package/public/css/fonts/stitcher-logo.svg +0 -83
  220. package/public/img/ACPM.PNG +0 -0
  221. package/src/api/comments.ts +0 -7
  222. package/src/api/emissions.ts +0 -7
  223. package/src/api/podcasts.ts +0 -7
  224. package/src/api/profile.ts +0 -8
  225. package/src/api/studio.ts +0 -1
  226. package/src/assets/bootstrap_scss/_alert.scss +0 -51
  227. package/src/assets/bootstrap_scss/_badge.scss +0 -54
  228. package/src/assets/bootstrap_scss/_breadcrumb.scss +0 -42
  229. package/src/assets/bootstrap_scss/_button-group.scss +0 -164
  230. package/src/assets/bootstrap_scss/_buttons.scss +0 -291
  231. package/src/assets/bootstrap_scss/_card.scss +0 -278
  232. package/src/assets/bootstrap_scss/_carousel.scss +0 -197
  233. package/src/assets/bootstrap_scss/_close.scss +0 -41
  234. package/src/assets/bootstrap_scss/_code.scss +0 -48
  235. package/src/assets/bootstrap_scss/_custom-forms.scss +0 -522
  236. package/src/assets/bootstrap_scss/_dropdown.scss +0 -201
  237. package/src/assets/bootstrap_scss/_forms.scss +0 -352
  238. package/src/assets/bootstrap_scss/_functions.scss +0 -134
  239. package/src/assets/bootstrap_scss/_grid.scss +0 -69
  240. package/src/assets/bootstrap_scss/_images.scss +0 -42
  241. package/src/assets/bootstrap_scss/_input-group.scss +0 -191
  242. package/src/assets/bootstrap_scss/_jumbotron.scss +0 -17
  243. package/src/assets/bootstrap_scss/_list-group.scss +0 -158
  244. package/src/assets/bootstrap_scss/_media.scss +0 -8
  245. package/src/assets/bootstrap_scss/_mixins.scss +0 -47
  246. package/src/assets/bootstrap_scss/_modal.scss +0 -243
  247. package/src/assets/bootstrap_scss/_nav.scss +0 -120
  248. package/src/assets/bootstrap_scss/_navbar.scss +0 -324
  249. package/src/assets/bootstrap_scss/_pagination.scss +0 -74
  250. package/src/assets/bootstrap_scss/_popover.scss +0 -170
  251. package/src/assets/bootstrap_scss/_print.scss +0 -141
  252. package/src/assets/bootstrap_scss/_progress.scss +0 -46
  253. package/src/assets/bootstrap_scss/_reboot.scss +0 -482
  254. package/src/assets/bootstrap_scss/_root.scss +0 -20
  255. package/src/assets/bootstrap_scss/_spinners.scss +0 -55
  256. package/src/assets/bootstrap_scss/_tables.scss +0 -185
  257. package/src/assets/bootstrap_scss/_toasts.scss +0 -44
  258. package/src/assets/bootstrap_scss/_tooltip.scss +0 -115
  259. package/src/assets/bootstrap_scss/_transitions.scss +0 -20
  260. package/src/assets/bootstrap_scss/_type.scss +0 -125
  261. package/src/assets/bootstrap_scss/_utilities.scss +0 -17
  262. package/src/assets/bootstrap_scss/_variables.scss +0 -1145
  263. package/src/assets/bootstrap_scss/bootstrap-grid.scss +0 -29
  264. package/src/assets/bootstrap_scss/bootstrap-reboot.scss +0 -12
  265. package/src/assets/bootstrap_scss/bootstrap.scss +0 -44
  266. package/src/assets/bootstrap_scss/mixins/_alert.scss +0 -13
  267. package/src/assets/bootstrap_scss/mixins/_background-variant.scss +0 -22
  268. package/src/assets/bootstrap_scss/mixins/_badge.scss +0 -17
  269. package/src/assets/bootstrap_scss/mixins/_border-radius.scss +0 -63
  270. package/src/assets/bootstrap_scss/mixins/_box-shadow.scss +0 -20
  271. package/src/assets/bootstrap_scss/mixins/_breakpoints.scss +0 -123
  272. package/src/assets/bootstrap_scss/mixins/_buttons.scss +0 -110
  273. package/src/assets/bootstrap_scss/mixins/_caret.scss +0 -62
  274. package/src/assets/bootstrap_scss/mixins/_clearfix.scss +0 -7
  275. package/src/assets/bootstrap_scss/mixins/_deprecate.scss +0 -10
  276. package/src/assets/bootstrap_scss/mixins/_float.scss +0 -14
  277. package/src/assets/bootstrap_scss/mixins/_forms.scss +0 -177
  278. package/src/assets/bootstrap_scss/mixins/_gradients.scss +0 -45
  279. package/src/assets/bootstrap_scss/mixins/_grid-framework.scss +0 -71
  280. package/src/assets/bootstrap_scss/mixins/_grid.scss +0 -69
  281. package/src/assets/bootstrap_scss/mixins/_hover.scss +0 -37
  282. package/src/assets/bootstrap_scss/mixins/_image.scss +0 -36
  283. package/src/assets/bootstrap_scss/mixins/_list-group.scss +0 -21
  284. package/src/assets/bootstrap_scss/mixins/_lists.scss +0 -7
  285. package/src/assets/bootstrap_scss/mixins/_nav-divider.scss +0 -11
  286. package/src/assets/bootstrap_scss/mixins/_pagination.scss +0 -22
  287. package/src/assets/bootstrap_scss/mixins/_reset-text.scss +0 -17
  288. package/src/assets/bootstrap_scss/mixins/_resize.scss +0 -6
  289. package/src/assets/bootstrap_scss/mixins/_screen-reader.scss +0 -34
  290. package/src/assets/bootstrap_scss/mixins/_size.scss +0 -7
  291. package/src/assets/bootstrap_scss/mixins/_table-row.scss +0 -39
  292. package/src/assets/bootstrap_scss/mixins/_text-emphasis.scss +0 -17
  293. package/src/assets/bootstrap_scss/mixins/_text-hide.scss +0 -11
  294. package/src/assets/bootstrap_scss/mixins/_text-truncate.scss +0 -8
  295. package/src/assets/bootstrap_scss/mixins/_transition.scss +0 -16
  296. package/src/assets/bootstrap_scss/mixins/_visibility.scss +0 -8
  297. package/src/assets/bootstrap_scss/utilities/_align.scss +0 -8
  298. package/src/assets/bootstrap_scss/utilities/_background.scss +0 -19
  299. package/src/assets/bootstrap_scss/utilities/_borders.scss +0 -75
  300. package/src/assets/bootstrap_scss/utilities/_clearfix.scss +0 -3
  301. package/src/assets/bootstrap_scss/utilities/_display.scss +0 -26
  302. package/src/assets/bootstrap_scss/utilities/_embed.scss +0 -39
  303. package/src/assets/bootstrap_scss/utilities/_flex.scss +0 -51
  304. package/src/assets/bootstrap_scss/utilities/_float.scss +0 -11
  305. package/src/assets/bootstrap_scss/utilities/_overflow.scss +0 -5
  306. package/src/assets/bootstrap_scss/utilities/_position.scss +0 -32
  307. package/src/assets/bootstrap_scss/utilities/_screenreaders.scss +0 -11
  308. package/src/assets/bootstrap_scss/utilities/_shadows.scss +0 -6
  309. package/src/assets/bootstrap_scss/utilities/_sizing.scss +0 -20
  310. package/src/assets/bootstrap_scss/utilities/_spacing.scss +0 -73
  311. package/src/assets/bootstrap_scss/utilities/_stretched-link.scss +0 -19
  312. package/src/assets/bootstrap_scss/utilities/_text.scss +0 -72
  313. package/src/assets/bootstrap_scss/utilities/_visibility.scss +0 -13
  314. package/src/assets/bootstrap_scss/vendor/_rfs.scss +0 -204
  315. package/src/components/misc/Player.vue +0 -792
  316. package/src/shims-vuex.d.ts +0 -7
  317. package/src/views/Home.vue +0 -18
@@ -1,522 +0,0 @@
1
- // Embedded icons from Open Iconic.
2
- // Released under MIT and copyright 2014 Waybury.
3
- // https://useiconic.com/open
4
-
5
-
6
- // Checkboxes and radios
7
- //
8
- // Base class takes care of all the key behavioral aspects.
9
-
10
- .custom-control {
11
- position: relative;
12
- display: block;
13
- min-height: $font-size-base * $line-height-base;
14
- padding-left: $custom-control-gutter + $custom-control-indicator-size;
15
- }
16
-
17
- .custom-control-inline {
18
- display: inline-flex;
19
- margin-right: $custom-control-spacer-x;
20
- }
21
-
22
- .custom-control-input {
23
- position: absolute;
24
- left: 0;
25
- z-index: -1; // Put the input behind the label so it doesn't overlay text
26
- width: $custom-control-indicator-size;
27
- height: ($font-size-base * $line-height-base + $custom-control-indicator-size) / 2;
28
- opacity: 0;
29
-
30
- &:checked ~ .custom-control-label::before {
31
- color: $custom-control-indicator-checked-color;
32
- border-color: $custom-control-indicator-checked-border-color;
33
- @include gradient-bg($custom-control-indicator-checked-bg);
34
- @include box-shadow($custom-control-indicator-checked-box-shadow);
35
- }
36
-
37
- &:focus ~ .custom-control-label::before {
38
- // the mixin is not used here to make sure there is feedback
39
- @if $enable-shadows {
40
- box-shadow: $input-box-shadow, $input-focus-box-shadow;
41
- } @else {
42
- box-shadow: $custom-control-indicator-focus-box-shadow;
43
- }
44
- }
45
-
46
- &:focus:not(:checked) ~ .custom-control-label::before {
47
- border-color: $custom-control-indicator-focus-border-color;
48
- }
49
-
50
- &:not(:disabled):active ~ .custom-control-label::before {
51
- color: $custom-control-indicator-active-color;
52
- background-color: $custom-control-indicator-active-bg;
53
- border-color: $custom-control-indicator-active-border-color;
54
- @include box-shadow($custom-control-indicator-active-box-shadow);
55
- }
56
-
57
- // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
58
- &[disabled],
59
- &:disabled {
60
- ~ .custom-control-label {
61
- color: $custom-control-label-disabled-color;
62
-
63
- &::before {
64
- background-color: $custom-control-indicator-disabled-bg;
65
- }
66
- }
67
- }
68
- }
69
-
70
- // Custom control indicators
71
- //
72
- // Build the custom controls out of pseudo-elements.
73
-
74
- .custom-control-label {
75
- position: relative;
76
- margin-bottom: 0;
77
- color: $custom-control-label-color;
78
- vertical-align: top;
79
- cursor: $custom-control-cursor;
80
-
81
- // Background-color and (when enabled) gradient
82
- &::before {
83
- position: absolute;
84
- top: ($font-size-base * $line-height-base - $custom-control-indicator-size) / 2;
85
- left: -($custom-control-gutter + $custom-control-indicator-size);
86
- display: block;
87
- width: $custom-control-indicator-size;
88
- height: $custom-control-indicator-size;
89
- pointer-events: none;
90
- content: "";
91
- background-color: $custom-control-indicator-bg;
92
- border: 1px solid #ddd;
93
- border-radius: 5px;
94
- @include box-shadow($custom-control-indicator-box-shadow);
95
- }
96
-
97
- // Foreground (icon)
98
- &::after {
99
- position: absolute;
100
- top: ($font-size-base * $line-height-base - $custom-control-indicator-size) / 2;
101
- left: -($custom-control-gutter + $custom-control-indicator-size);
102
- display: block;
103
- width: $custom-control-indicator-size;
104
- height: $custom-control-indicator-size;
105
- content: "";
106
- background: no-repeat 50% / #{$custom-control-indicator-bg-size};
107
- }
108
- }
109
-
110
-
111
- // Checkboxes
112
- //
113
- // Tweak just a few things for checkboxes.
114
-
115
- .custom-checkbox {
116
- .custom-control-label::before {
117
- @include border-radius($custom-checkbox-indicator-border-radius);
118
- }
119
-
120
- .custom-control-input:checked ~ .custom-control-label {
121
- &::after {
122
- background-image: escape-svg($custom-checkbox-indicator-icon-checked);
123
- }
124
- }
125
-
126
- .custom-control-input:indeterminate ~ .custom-control-label {
127
- &::before {
128
- border-color: $custom-checkbox-indicator-indeterminate-border-color;
129
- @include gradient-bg($custom-checkbox-indicator-indeterminate-bg);
130
- @include box-shadow($custom-checkbox-indicator-indeterminate-box-shadow);
131
- }
132
- &::after {
133
- background-image: escape-svg($custom-checkbox-indicator-icon-indeterminate);
134
- }
135
- }
136
-
137
- .custom-control-input:disabled {
138
- &:checked ~ .custom-control-label::before {
139
- background-color: $custom-control-indicator-checked-disabled-bg;
140
- }
141
- &:indeterminate ~ .custom-control-label::before {
142
- background-color: $custom-control-indicator-checked-disabled-bg;
143
- }
144
- }
145
- }
146
-
147
- // Radios
148
- //
149
- // Tweak just a few things for radios.
150
-
151
- .custom-radio {
152
- .custom-control-label::before {
153
- // stylelint-disable-next-line property-blacklist
154
- border-radius: $custom-radio-indicator-border-radius;
155
- }
156
-
157
- .custom-control-input:checked ~ .custom-control-label {
158
- &::after {
159
- background-image: escape-svg($custom-radio-indicator-icon-checked);
160
- }
161
- }
162
-
163
- .custom-control-input:disabled {
164
- &:checked ~ .custom-control-label::before {
165
- background-color: $custom-control-indicator-checked-disabled-bg;
166
- }
167
- }
168
- }
169
-
170
-
171
- // switches
172
- //
173
- // Tweak a few things for switches
174
-
175
- .custom-switch {
176
- padding-left: $custom-switch-width + $custom-control-gutter;
177
-
178
- .custom-control-label {
179
- &::before {
180
- left: -($custom-switch-width + $custom-control-gutter);
181
- width: $custom-switch-width;
182
- pointer-events: all;
183
- // stylelint-disable-next-line property-blacklist
184
- border-radius: $custom-switch-indicator-border-radius;
185
- }
186
-
187
- &::after {
188
- top: add(($font-size-base * $line-height-base - $custom-control-indicator-size) / 2, $custom-control-indicator-border-width * 2);
189
- left: add(-($custom-switch-width + $custom-control-gutter), $custom-control-indicator-border-width * 2);
190
- width: $custom-switch-indicator-size;
191
- height: $custom-switch-indicator-size;
192
- background-color: $custom-control-indicator-border-color;
193
- // stylelint-disable-next-line property-blacklist
194
- border-radius: $custom-switch-indicator-border-radius;
195
- @include transition(transform .15s ease-in-out, $custom-forms-transition);
196
- }
197
- }
198
-
199
- .custom-control-input:checked ~ .custom-control-label {
200
- &::after {
201
- background-color: $custom-control-indicator-bg;
202
- transform: translateX($custom-switch-width - $custom-control-indicator-size);
203
- }
204
- }
205
-
206
- .custom-control-input:disabled {
207
- &:checked ~ .custom-control-label::before {
208
- background-color: $custom-control-indicator-checked-disabled-bg;
209
- }
210
- }
211
- }
212
-
213
-
214
- // Select
215
- //
216
- // Replaces the browser default select with a custom one, mostly pulled from
217
- // https://primer.github.io/.
218
- //
219
-
220
- .custom-select {
221
- display: inline-block;
222
- width: 100%;
223
- height: $custom-select-height;
224
- padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
225
- font-family: $custom-select-font-family;
226
- @include font-size($custom-select-font-size);
227
- font-weight: $custom-select-font-weight;
228
- line-height: $custom-select-line-height;
229
- color: $custom-select-color;
230
- vertical-align: middle;
231
- background: $custom-select-bg $custom-select-background;
232
- border: $custom-select-border-width solid $custom-select-border-color;
233
- @include border-radius($custom-select-border-radius, 0);
234
- @include box-shadow($custom-select-box-shadow);
235
- appearance: none;
236
-
237
- &:focus {
238
- border-color: $custom-select-focus-border-color;
239
- outline: 0;
240
- @if $enable-shadows {
241
- box-shadow: $custom-select-box-shadow, $custom-select-focus-box-shadow;
242
- } @else {
243
- box-shadow: $custom-select-focus-box-shadow;
244
- }
245
-
246
- &::-ms-value {
247
- // For visual consistency with other platforms/browsers,
248
- // suppress the default white text on blue background highlight given to
249
- // the selected option text when the (still closed) <select> receives focus
250
- // in IE and (under certain conditions) Edge.
251
- // See https://github.com/twbs/bootstrap/issues/19398.
252
- color: $input-color;
253
- background-color: $input-bg;
254
- }
255
- }
256
-
257
- &[multiple],
258
- &[size]:not([size="1"]) {
259
- height: auto;
260
- padding-right: $custom-select-padding-x;
261
- background-image: none;
262
- }
263
-
264
- &:disabled {
265
- color: $custom-select-disabled-color;
266
- background-color: $custom-select-disabled-bg;
267
- }
268
-
269
- // Hides the default caret in IE11
270
- &::-ms-expand {
271
- display: none;
272
- }
273
-
274
- // Remove outline from select box in FF
275
- &:-moz-focusring {
276
- color: transparent;
277
- text-shadow: 0 0 0 $custom-select-color;
278
- }
279
- }
280
-
281
- .custom-select-sm {
282
- height: $custom-select-height-sm;
283
- padding-top: $custom-select-padding-y-sm;
284
- padding-bottom: $custom-select-padding-y-sm;
285
- padding-left: $custom-select-padding-x-sm;
286
- @include font-size($custom-select-font-size-sm);
287
- }
288
-
289
- .custom-select-lg {
290
- height: $custom-select-height-lg;
291
- padding-top: $custom-select-padding-y-lg;
292
- padding-bottom: $custom-select-padding-y-lg;
293
- padding-left: $custom-select-padding-x-lg;
294
- @include font-size($custom-select-font-size-lg);
295
- }
296
-
297
-
298
- // File
299
- //
300
- // Custom file input.
301
-
302
- .custom-file {
303
- position: relative;
304
- display: inline-block;
305
- width: 100%;
306
- height: $custom-file-height;
307
- margin-bottom: 0;
308
- }
309
-
310
- .custom-file-input {
311
- position: relative;
312
- z-index: 2;
313
- width: 100%;
314
- height: $custom-file-height;
315
- margin: 0;
316
- opacity: 0;
317
-
318
- &:focus ~ .custom-file-label {
319
- border-color: $custom-file-focus-border-color;
320
- box-shadow: $custom-file-focus-box-shadow;
321
- }
322
-
323
- // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
324
- &[disabled] ~ .custom-file-label,
325
- &:disabled ~ .custom-file-label {
326
- background-color: $custom-file-disabled-bg;
327
- }
328
-
329
- @each $lang, $value in $custom-file-text {
330
- &:lang(#{$lang}) ~ .custom-file-label::after {
331
- content: $value;
332
- }
333
- }
334
-
335
- ~ .custom-file-label[data-browse]::after {
336
- content: attr(data-browse);
337
- }
338
- }
339
-
340
- .custom-file-label {
341
- position: absolute;
342
- top: 0;
343
- right: 0;
344
- left: 0;
345
- z-index: 1;
346
- height: $custom-file-height;
347
- padding: $custom-file-padding-y $custom-file-padding-x;
348
- font-family: $custom-file-font-family;
349
- font-weight: $custom-file-font-weight;
350
- line-height: $custom-file-line-height;
351
- color: $custom-file-color;
352
- background-color: $custom-file-bg;
353
- border: $custom-file-border-width solid $custom-file-border-color;
354
- @include border-radius($custom-file-border-radius);
355
- @include box-shadow($custom-file-box-shadow);
356
-
357
- &::after {
358
- position: absolute;
359
- top: 0;
360
- right: 0;
361
- bottom: 0;
362
- z-index: 3;
363
- display: block;
364
- height: $custom-file-height-inner;
365
- padding: $custom-file-padding-y $custom-file-padding-x;
366
- line-height: $custom-file-line-height;
367
- color: $custom-file-button-color;
368
- content: "Browse";
369
- @include gradient-bg($custom-file-button-bg);
370
- border-left: inherit;
371
- @include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
372
- }
373
- }
374
-
375
- // Range
376
- //
377
- // Style range inputs the same across browsers. Vendor-specific rules for pseudo
378
- // elements cannot be mixed. As such, there are no shared styles for focus or
379
- // active states on prefixed selectors.
380
-
381
- .custom-range {
382
- width: 100%;
383
- height: add($custom-range-thumb-height, $custom-range-thumb-focus-box-shadow-width * 2);
384
- padding: 0; // Need to reset padding
385
- background-color: transparent;
386
- appearance: none;
387
-
388
- &:focus {
389
- outline: none;
390
-
391
- // Pseudo-elements must be split across multiple rulesets to have an effect.
392
- // No box-shadow() mixin for focus accessibility.
393
- &::-webkit-slider-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
394
- &::-moz-range-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
395
- &::-ms-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
396
- }
397
-
398
- &::-moz-focus-outer {
399
- border: 0;
400
- }
401
-
402
- &::-webkit-slider-thumb {
403
- width: $custom-range-thumb-width;
404
- height: $custom-range-thumb-height;
405
- margin-top: ($custom-range-track-height - $custom-range-thumb-height) / 2; // Webkit specific
406
- @include gradient-bg($custom-range-thumb-bg);
407
- border: $custom-range-thumb-border;
408
- @include border-radius($custom-range-thumb-border-radius);
409
- @include box-shadow($custom-range-thumb-box-shadow);
410
- @include transition($custom-forms-transition);
411
- appearance: none;
412
-
413
- &:active {
414
- @include gradient-bg($custom-range-thumb-active-bg);
415
- }
416
- }
417
-
418
- &::-webkit-slider-runnable-track {
419
- width: $custom-range-track-width;
420
- height: $custom-range-track-height;
421
- color: transparent; // Why?
422
- cursor: $custom-range-track-cursor;
423
- background-color: $custom-range-track-bg;
424
- border-color: transparent;
425
- @include border-radius($custom-range-track-border-radius);
426
- @include box-shadow($custom-range-track-box-shadow);
427
- }
428
-
429
- &::-moz-range-thumb {
430
- width: $custom-range-thumb-width;
431
- height: $custom-range-thumb-height;
432
- @include gradient-bg($custom-range-thumb-bg);
433
- border: $custom-range-thumb-border;
434
- @include border-radius($custom-range-thumb-border-radius);
435
- @include box-shadow($custom-range-thumb-box-shadow);
436
- @include transition($custom-forms-transition);
437
- appearance: none;
438
-
439
- &:active {
440
- @include gradient-bg($custom-range-thumb-active-bg);
441
- }
442
- }
443
-
444
- &::-moz-range-track {
445
- width: $custom-range-track-width;
446
- height: $custom-range-track-height;
447
- color: transparent;
448
- cursor: $custom-range-track-cursor;
449
- background-color: $custom-range-track-bg;
450
- border-color: transparent; // Firefox specific?
451
- @include border-radius($custom-range-track-border-radius);
452
- @include box-shadow($custom-range-track-box-shadow);
453
- }
454
-
455
- &::-ms-thumb {
456
- width: $custom-range-thumb-width;
457
- height: $custom-range-thumb-height;
458
- margin-top: 0; // Edge specific
459
- margin-right: $custom-range-thumb-focus-box-shadow-width; // Workaround that overflowed box-shadow is hidden.
460
- margin-left: $custom-range-thumb-focus-box-shadow-width; // Workaround that overflowed box-shadow is hidden.
461
- @include gradient-bg($custom-range-thumb-bg);
462
- border: $custom-range-thumb-border;
463
- @include border-radius($custom-range-thumb-border-radius);
464
- @include box-shadow($custom-range-thumb-box-shadow);
465
- @include transition($custom-forms-transition);
466
- appearance: none;
467
-
468
- &:active {
469
- @include gradient-bg($custom-range-thumb-active-bg);
470
- }
471
- }
472
-
473
- &::-ms-track {
474
- width: $custom-range-track-width;
475
- height: $custom-range-track-height;
476
- color: transparent;
477
- cursor: $custom-range-track-cursor;
478
- background-color: transparent;
479
- border-color: transparent;
480
- border-width: $custom-range-thumb-height / 2;
481
- @include box-shadow($custom-range-track-box-shadow);
482
- }
483
-
484
- &::-ms-fill-lower {
485
- background-color: $custom-range-track-bg;
486
- @include border-radius($custom-range-track-border-radius);
487
- }
488
-
489
- &::-ms-fill-upper {
490
- margin-right: 15px; // arbitrary?
491
- background-color: $custom-range-track-bg;
492
- @include border-radius($custom-range-track-border-radius);
493
- }
494
-
495
- &:disabled {
496
- &::-webkit-slider-thumb {
497
- background-color: $custom-range-thumb-disabled-bg;
498
- }
499
-
500
- &::-webkit-slider-runnable-track {
501
- cursor: default;
502
- }
503
-
504
- &::-moz-range-thumb {
505
- background-color: $custom-range-thumb-disabled-bg;
506
- }
507
-
508
- &::-moz-range-track {
509
- cursor: default;
510
- }
511
-
512
- &::-ms-thumb {
513
- background-color: $custom-range-thumb-disabled-bg;
514
- }
515
- }
516
- }
517
-
518
- .custom-control-label::before,
519
- .custom-file-label,
520
- .custom-select {
521
- @include transition($custom-forms-transition);
522
- }
@@ -1,201 +0,0 @@
1
- // The dropdown wrapper (`<div>`)
2
- .dropup,
3
- .dropright,
4
- .dropdown,
5
- .dropleft {
6
- position: relative;
7
- }
8
-
9
- .dropdown-toggle {
10
- white-space: nowrap;
11
-
12
- // Generate the caret automatically
13
- @include caret();
14
- }
15
-
16
- // The dropdown menu
17
- .dropdown-menu {
18
- position: absolute;
19
- top: 100%;
20
- left: 0;
21
- z-index: $zindex-dropdown;
22
- display: none; // none by default, but block on "open" of the menu
23
- float: left;
24
- min-width: $dropdown-min-width;
25
- padding: $dropdown-padding-y 0.5rem;
26
- margin: $dropdown-spacer 0 0; // override default ul
27
- @include font-size($dropdown-font-size);
28
- color: $dropdown-color;
29
- text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
30
- list-style: none;
31
- background-color: $dropdown-bg;
32
- background-clip: padding-box;
33
- border: $dropdown-border-width solid $dropdown-border-color;
34
- @include border-radius($dropdown-border-radius);
35
- @include box-shadow($dropdown-box-shadow);
36
- @media (max-width: 450px) {
37
- min-width: 15rem;
38
- }
39
- }
40
-
41
- @each $breakpoint in map-keys($grid-breakpoints) {
42
- @include media-breakpoint-up($breakpoint) {
43
- $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
44
-
45
- .dropdown-menu#{$infix}-left {
46
- right: auto;
47
- left: 0;
48
- }
49
-
50
- .dropdown-menu#{$infix}-right {
51
- right: 0;
52
- left: auto;
53
- }
54
- }
55
- }
56
-
57
- // Allow for dropdowns to go bottom up (aka, dropup-menu)
58
- // Just add .dropup after the standard .dropdown class and you're set.
59
- .dropup {
60
- .dropdown-menu {
61
- top: auto;
62
- bottom: 100%;
63
- margin-top: 0;
64
- margin-bottom: $dropdown-spacer;
65
- }
66
-
67
- .dropdown-toggle {
68
- @include caret(up);
69
- }
70
- }
71
-
72
- .dropright {
73
- .dropdown-menu {
74
- top: 0;
75
- right: auto;
76
- left: 100%;
77
- margin-top: 0;
78
- margin-left: $dropdown-spacer;
79
- }
80
-
81
- .dropdown-toggle {
82
- @include caret(right);
83
- &::after {
84
- vertical-align: 0;
85
- }
86
- }
87
- }
88
-
89
- .dropleft {
90
- .dropdown-menu {
91
- top: 0;
92
- right: 100%;
93
- left: auto;
94
- margin-top: 0;
95
- margin-right: $dropdown-spacer;
96
- }
97
-
98
- .dropdown-toggle {
99
- @include caret(left);
100
- &::before {
101
- vertical-align: 0;
102
- }
103
- }
104
- }
105
-
106
- // When enabled Popper.js, reset basic dropdown position
107
- // stylelint-disable-next-line no-duplicate-selectors
108
- .dropdown-menu {
109
- &[x-placement^="top"],
110
- &[x-placement^="right"],
111
- &[x-placement^="bottom"],
112
- &[x-placement^="left"] {
113
- right: auto;
114
- bottom: auto;
115
- }
116
- }
117
-
118
- // Dividers (basically an `<hr>`) within the dropdown
119
- .dropdown-divider {
120
- @include nav-divider($dropdown-divider-bg, $dropdown-divider-margin-y, true);
121
- }
122
-
123
- // Links, buttons, and more within the dropdown menu
124
- //
125
- // `<button>`-specific styles are denoted with `// For <button>s`
126
- .dropdown-item {
127
- display: block;
128
- width: 100%; // For `<button>`s
129
- padding: $dropdown-item-padding-y $dropdown-item-padding-x;
130
- clear: both;
131
- font-weight: $font-weight-normal;
132
- color: $dropdown-link-color;
133
- text-align: inherit; // For `<button>`s
134
- white-space: nowrap; // prevent links from randomly breaking onto new lines
135
- background-color: transparent; // For `<button>`s
136
- border: 0; // For `<button>`s
137
- font-size: 0.8rem;
138
- @media (max-width: 450px) {
139
- padding: 0.25rem 0;
140
- }
141
-
142
- // Prevent dropdown overflow if there's no padding
143
- // See https://github.com/twbs/bootstrap/pull/27703
144
- @if $dropdown-padding-y == 0 {
145
- &:first-child {
146
- @include border-top-radius($dropdown-inner-border-radius);
147
- }
148
-
149
- &:last-child {
150
- @include border-bottom-radius($dropdown-inner-border-radius);
151
- }
152
- }
153
-
154
- @include hover-focus() {
155
- color: $dropdown-link-hover-color;
156
- text-decoration: none;
157
- @include gradient-bg($dropdown-link-hover-bg);
158
- }
159
-
160
- &.active,
161
- &:active {
162
- color: $dropdown-link-active-color;
163
- text-decoration: none;
164
- @include gradient-bg($dropdown-link-active-bg);
165
- }
166
-
167
- &.disabled,
168
- &:disabled {
169
- color: $dropdown-link-disabled-color;
170
- pointer-events: none;
171
- background-color: transparent;
172
- // Remove CSS gradients if they're enabled
173
- @if $enable-gradients {
174
- background-image: none;
175
- }
176
- }
177
- }
178
-
179
- .dropdown-menu.show {
180
- display: block;
181
- }
182
-
183
- // Dropdown section headers
184
- .dropdown-header {
185
- display: block;
186
- padding: $dropdown-padding-y $dropdown-item-padding-x;
187
- margin-bottom: 0; // for use with heading elements
188
- @include font-size($font-size-sm);
189
- color: $dropdown-header-color;
190
- white-space: nowrap; // as with > li > a
191
- @media (max-width: 450px) {
192
- margin: 1rem 0 0;
193
- }
194
- }
195
-
196
- // Dropdown text
197
- .dropdown-item-text {
198
- display: block;
199
- padding: $dropdown-item-padding-y $dropdown-item-padding-x;
200
- color: $dropdown-link-color;
201
- }