This file contains 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
// html code | |
<div class="form-group"> | |
<div class="input-group input-file" name="Fichier1"> | |
<input type="text" class="form-control" placeholder='No file selected' /> | |
<span class="input-group-btn"> | |
<button class="btn btn-default btn-choose" type="button">Upload image</button> | |
</span> | |
</div> | |
</div> |
This file contains 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
<!-- Button trigger modal --> | |
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal"> | |
Launch demo modal | |
</button> | |
<!-- Modal --> | |
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> | |
<div class="modal-dialog" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> |
This file contains 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
::-webkit-input-placeholder { /* Chrome/Opera/Safari */ | |
color: pink; | |
} | |
::-moz-placeholder { /* Firefox 19+ */ | |
color: pink; | |
} | |
:-ms-input-placeholder { /* IE 10+ */ | |
color: pink; | |
} | |
:-moz-placeholder { /* Firefox 18- */ |
This file contains 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
npm install create-react-app -g | |
create-react-app folder-name | |
then npm start for live view |
This file contains 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
First you need to run | |
npm run eject | |
then in config folder you will find webpack-config-devs.js and webpack-config-prod.js, where you will search the css-loader function | |
paste this code | |
modules: true, | |
localIdentName: '[name]__[local]__[hash:base64:5]' |
This file contains 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
-go to icomoon.io | |
-click icomoon app | |
-scroll to down | |
- click add icons from library | |
- then choose encrypto | |
- then select the icons | |
- then click generate svg and download | |
- copy svg icon from svg folder and also copy symbol-defs.svg which will be saved as sprite.svg | |
in html | |
<svg> |
This file contains 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
longpaths = true |
This file contains 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
install gulp | |
npm install gulp -g (windows) | |
sudo npm install gulp -g (mac) | |
in project file | |
the structure will be | |
apps(this folder will be used for developer purpose where all the | |
css, js, images, fonts, sass file included) |
This file contains 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
$ git config --global core.autocrlf true |
OlderNewer