diff options
author | Sandrine Caruso <sandrine.caruso@ens-cachan.org> | 2020-06-19 17:02:29 +0200 |
---|---|---|
committer | Denise sur Lya <sekhmet@lya> | 2020-06-19 17:05:49 +0200 |
commit | d5af53b51c60dd9ebf057b9e24a9bbec04086e50 (patch) | |
tree | eba8a3bedf5e28c8776744ccc75f70104f1a6a00 | |
parent | 61020126080c00be471ea41a0b25109469d8bda1 (diff) | |
download | oms-d5af53b51c60dd9ebf057b9e24a9bbec04086e50.tar.gz oms-d5af53b51c60dd9ebf057b9e24a9bbec04086e50.tar.zst oms-d5af53b51c60dd9ebf057b9e24a9bbec04086e50.zip |
Bouton import : image plus petite
-rw-r--r-- | static/icons/import.png | bin | 19119 -> 306 bytes | |||
-rw-r--r-- | static/style.css | 11 | ||||
-rw-r--r-- | templates/index.html | 2 |
3 files changed, 5 insertions, 8 deletions
diff --git a/static/icons/import.png b/static/icons/import.png index e184925..1f98c69 100644 --- a/static/icons/import.png +++ b/static/icons/import.png | |||
Binary files differ | |||
diff --git a/static/style.css b/static/style.css index 0df8e6a..b5f041a 100644 --- a/static/style.css +++ b/static/style.css | |||
@@ -50,7 +50,6 @@ img#courbe { | |||
50 | } | 50 | } |
51 | 51 | ||
52 | #import_donnees label { | 52 | #import_donnees label { |
53 | height: 128px; | ||
54 | display: inline-block; | 53 | display: inline-block; |
55 | cursor: pointer; | 54 | cursor: pointer; |
56 | position: relative; | 55 | position: relative; |
@@ -58,19 +57,17 @@ img#courbe { | |||
58 | 57 | ||
59 | #import_donnees label img { | 58 | #import_donnees label img { |
60 | border-radius: 100%; | 59 | border-radius: 100%; |
61 | box-shadow: 0px 0px 10px #55f; | 60 | box-shadow: 0px 0px 5px #55f; |
61 | vertical-align: middle; | ||
62 | } | 62 | } |
63 | 63 | ||
64 | #import_donnees label .icon_legend { | 64 | #import_donnees label .icon_legend { |
65 | position: absolute; | ||
66 | top: 50%; | ||
67 | left: 50%; | ||
68 | transform: translate(-50%,-50%); | ||
69 | width: 90%; | ||
70 | text-align: center; | 65 | text-align: center; |
71 | opacity: 0.7; | 66 | opacity: 0.7; |
72 | line-height: 1.5; | 67 | line-height: 1.5; |
73 | background: rgba(256,256,256,0.5); | 68 | background: rgba(256,256,256,0.5); |
69 | padding: 3px 7px; | ||
70 | vertical-align: middle; | ||
74 | } | 71 | } |
75 | 72 | ||
76 | #import_donnees input { | 73 | #import_donnees input { |
diff --git a/templates/index.html b/templates/index.html index 52fa466..cc8c4ec 100644 --- a/templates/index.html +++ b/templates/index.html | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | <label for="fichier_donnees"> | 16 | <label for="fichier_donnees"> |
17 | <img src="static/icons/import.png"> | 17 | <img src="static/icons/import.png"> |
18 | <div class="icon_legend">Importer un fichier</div> | 18 | <span class="icon_legend">Importer un fichier</span> |
19 | </label> | 19 | </label> |
20 | <input type="file" name="fichier_donnees" id="fichier_donnees" oninput="upload_file()"> | 20 | <input type="file" name="fichier_donnees" id="fichier_donnees" oninput="upload_file()"> |
21 | <!--<input type="submit" name="valider_fichier" value="Charger les données">--> | 21 | <!--<input type="submit" name="valider_fichier" value="Charger les données">--> |