Browse Source

Evolution #79: TagsPrompt: Plus d'userFriendlyté

bastien 13 years ago
parent
commit
b8f77ba1fb

+ 3 - 1
src/Muzich/CoreBundle/Resources/views/Tag/tagsPrompt.html.twig View File

@@ -16,7 +16,9 @@
16 16
    <input class="tags_prompt_list" id="tags_prompt_list_{{ form_name }}" name="tags" value=""> 
17 17
    <div id="search_tag_{{ form_name }}" class="search_tag_list" style="display: none;">
18 18
      <span class="info"></span>
19
-     <img id="tag_loader_{{ form_name }}" class="tag_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading"/>
19
+     <div class="tag_loader_div">
20
+       <img id="tag_loader_{{ form_name }}" class="tag_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading"/>
21
+     </div>
20 22
      <ul class="search_tag_list"></ul>
21 23
      <a class="more" href="#" style="display: none;">Afficher les autres tags correspondant a la recherche</a>
22 24
    </div>

+ 47 - 8
web/bundles/muzichcore/css/main.css View File

@@ -503,11 +503,15 @@ ul.tagbox input[type="text"]:FOCUS
503 503
   );
504 504
 }
505 505
 
506
+div.tag_loader_div
507
+{
508
+  text-align: center;
509
+}
510
+
506 511
 .tag_loader
507 512
 {
508
-  float: right;
509
-  margin-top: 36px;
510
-  margin-left: 5px;
513
+  margin-left: auto;
514
+  marin-right: auto;
511 515
 }
512 516
 
513 517
 .element_name
@@ -527,17 +531,52 @@ div.search_tag_list
527 531
 {
528 532
   position: absolute;  
529 533
   background-color: white;
534
+  width: 400px;
535
+  padding: 2px;
530 536
   
537
+  border: 0px solid #d5d5d5;
538
+  border-radius: 7px;
539
+  -moz-border-radius: 7px;
540
+  -webkit-border-radius: 7px;
541
+  
542
+  -webkit-box-shadow: #666 0px 2px 3px;
543
+  -moz-box-shadow: #666 0px 2px 3px;
544
+  box-shadow: #666 0px 2px 3px;
545
+}
546
+
547
+div.search_tag_list span.info
548
+{
549
+  background-color: white;
550
+  padding: 2px;
531 551
 }
532 552
 
533 553
 div.search_tag_list ul.search_tag_list
534 554
 {
535
-  
536
-  
555
+  list-style-image: none;
556
+  padding:0;
557
+  margin:0;
558
+  list-style-type:none;
559
+  overflow: hidden;
537 560
 }
538 561
 
539 562
 div.search_tag_list ul.search_tag_list li
540 563
 {
541
-  
542
-  
543
-}
564
+  float: left;
565
+  margin-right: 4px;
566
+  margin-left: 4px;
567
+  margin-top: 2px;
568
+  margin-bottom: 2px;
569
+  padding: 2px;
570
+  background-color: #d9f7ff;
571
+}
572
+
573
+div.search_tag_list ul.search_tag_list li:hover
574
+{
575
+  background-color: #74dffe;
576
+}
577
+
578
+#container ul.search_tag_list li a
579
+{
580
+  color: black;
581
+}
582
+