This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {useEffect} from "react"; | |
| import {useFormContext, Controller} from "react-hook-form"; | |
| import MenuItem from "@material-ui/core/MenuItem"; | |
| import {formSelectStyles} from "./FormSelect.styles"; | |
| import {TextField} from "@material-ui/core"; | |
| import InputLabel from "@material-ui/core/InputLabel"; | |
| function FormSelect(props) { | |
| const {name, label, options} = props; | |
| const classes = formSelectStyles(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="js-position-sticky-bottom a-slide-from-bottom"> | |
| ... | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ***************************************************************************** | |
| * | |
| * Global animation setup | |
| * | |
| * ***************************************************************************** */ | |
| @keyframes fade-in-viewport { | |
| 0% { | |
| opacity: 0 | |
| } | |
| 100% { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ***************************************************************************** | |
| * | |
| * Global animation setup | |
| * | |
| * ***************************************************************************** */ | |
| @keyframes fade-in-viewport { | |
| 0% { | |
| opacity: 0 | |
| } | |
| 100% { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ***************************************************************************** | |
| * | |
| * Utilities | |
| * | |
| * ***************************************************************************** */ | |
| // Paddings | |
| // -------------------------------------------------------- | |
| .pl-card { | |
| padding-left: $card-body-padding-x; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "webpack-4-bootstrap-config", | |
| "version": "1.0.0", | |
| "description": "Simple working webpack 4, bootstrap configuration", | |
| "scripts": { | |
| "webpack:build": "webpack --mode=production --env.production", | |
| "webpack:dev": "webpack --mode=development --env.development", | |
| "webpack:watch": "webpack --mode=development --env.development --watch" | |
| }, | |
| "author": "David Lagace", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ---------------------------------- | |
| * Colors | |
| * | |
| * Use : .color--[my custom varibale in $theme-colors] | |
| * ---------------------------------- */ | |
| @each $color, $value in $theme-colors { | |
| .color--#{$color} { | |
| color: $value !important; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ***************************************************************************** | |
| * | |
| * Borders | |
| * | |
| * ***************************************************************************** */ | |
| /** | |
| @mixin createClassBorders($bordersMap, $themeVariantsMap) | |
| $borderMap<Map> An array of the borders property and abbreviation used for the OOCSS class name. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ***************************************************************************** | |
| * | |
| * Media queries mixins | |
| * | |
| * ***************************************************************************** */ | |
| /** | |
| @mixin media-scale($elem, $defaultValue, $mdValue, $lgValue) | |
| $elem The CSS property |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // -------------------------------- | |
| // Single use | |
| window.matchMedia("(orientation: portrait)").matches; // return true if device is in portrait | |
| // -------------------------------- | |
| // Watch for changes | |
| var mql = window.matchMedia("(orientation: portrait)"); | |
| mql.addListener(handleOrientationChange); | |
| handleOrientationChange(mql); |
NewerOlder