Commit 615652db7c6d17fbd861f32d11d63d76125408ad

Authored by Felipe Henrique de Almeida Bormann
1 parent 38f14a80

modified right side align on cards

amadeus/static/css/base/amadeus.css
... ... @@ -27,14 +27,19 @@
27 27  
28 28 .category-header > h4{
29 29 float:left;
30   -
31 30 margin-top: 0.5%;
32 31 }
33 32  
  33 +
  34 +.category-card-items i{
  35 + font-size: 25px !important;
  36 + margin-right: 5%;
  37 + margin-top: 1%;
  38 +}
34 39 .category-header i{
35 40 color: white;
36   - margin-right: 10px;
37   - font-size:16px;
  41 +
  42 + font-size: 20px;
38 43 float: right;
39 44  
40 45  
... ... @@ -101,6 +106,13 @@
101 106 float:left;
102 107 }
103 108  
  109 +.create-subject-btn{
  110 + width: 100%;
  111 + background-color: #26A69A;
  112 + color: white;
  113 + border: 0px;
  114 +}
  115 +
104 116 /* category app ends */
105 117  
106 118 .clearfix{
... ... @@ -643,6 +655,7 @@ ul, li {
643 655 /* Icon Topic */
644 656 .divMoreActions {
645 657 text-align: right; height: 30px; float: right;
  658 + width: 3%;
646 659 }
647 660  
648 661 .divMoreActions > .btn-group {
... ... @@ -663,7 +676,11 @@ ul, li {
663 676 .dropdown-menu .pull-right {
664 677 right: 0;
665 678 }
666   -.cards-content{ padding-left: 0px; padding-right: 0px; }
  679 +.cards-content{
  680 + padding-left: 0px; padding-right: 0px;
  681 + font-family: Roboto;
  682 + font-size: 18px;
  683 +}
667 684 .cards-detail{margin-left: 4%;}
668 685 .cards-detail .panel .panel-heading{/*background-color:;*/}
669 686 .cards-detail .panel .panel-heading h4{color:black;}
... ...
categories/templates/categories/list.html
... ... @@ -49,7 +49,7 @@
49 49 </a>
50 50 </h4>
51 51 {% if user.is_staff or user in category.coordinators.all %}
52   - <div class="col-xs-1 col-md-1 divMoreActions">
  52 + <div class=" divMoreActions">
53 53 <div class="btn-group">
54 54 <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="moreActions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
55 55 <i class="fa fa-ellipsis-v fa-2x" aria-hidden="true"></i>
... ... @@ -63,9 +63,12 @@
63 63 </ul>
64 64 </div>
65 65 </div>
  66 + {% else %}
  67 + <div class=" divMoreActions">
  68 + </div>
66 69 {% endif %}
67 70 {% if not user.is_staff %}
68   - <div class="col-md-5 pull-right">
  71 + <div class="col-md-5 pull-right category-card-items">
69 72 <a href="" ><i class="fa fa-list" aria-hidden="true"></i></a>
70 73 <a href=""><i class="fa fa-envelope-o" aria-hidden="true"></i></a>
71 74 <a href=""><i class="fa fa-exclamation-triangle" aria-hidden="true"></i></a>
... ... @@ -82,7 +85,12 @@
82 85 {% endfor %}
83 86 </h4>
84 87 {{category.description|safe}}
  88 + {% if user in category.coordinators.all %}
  89 + <button class="create-subject-btn"> {% trans "create new subject" %} </button>
  90 + {% endif %}
85 91 </div>
  92 +
  93 +
86 94 {% comment %}
87 95 <div id="{{category.slug}}" class="panel-collapse collapse">
88 96 {% for subject in subjects %}
... ...