Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Update the pagination CSS classes

Roland Geidere5e7b34f47e4
diff --git a/wger/core/static/css/workout-manager.css b/wger/core/static/css/workout-manager.css
index a4f613669..731435844 100644
--- a/wger/core/static/css/workout-manager.css
+++ b/wger/core/static/css/workout-manager.css
@@ -276,68 +276,9 @@ div.info a, div.info a:hover, div.info a:active{
/**************************************************************
- * Pagination styles
+ * extra-bold fonts
**************************************************************/
-.pagination a:hover
-{
- color:black;
-}
-
-ul.pagination li{
- margin: 0;
- padding: 0;
- list-style: none;
- margin-right: 0.5em;
-}
-
-ul.pagination .deactivated,
-ul.pagination a{
- margin-right: 0.5em;
-}
-
-ul.pagination .active{
- background: #204a87;
- color: white;
- font-weight: bold;
- display: block;
- float: left;
- padding: 3px 9px;
- border-radius: 3px;
- border: 1px solid black;
-}
-
-ul.pagination .deactivated{
- background: #D3D7CF;
- color: #555753;
- display: block;
- float: left;
- padding: 3px 9px;
- border-radius: 3px;
- border: 1px solid #D3D7CF;
-}
-
-ul.pagination a:link,
-ul.pagination a:visited {
- box-shadow: 0 0 4px #EEEEEE inset;
- color: #0e509e;
- display: block;
- float: left;
- padding: 3px 9px;
- border-radius: 3px;
- border: 1px solid #d3d7cf;
-}
-
-ul.pagination a:hover
-{
- border: 1px solid #2e3436;
- box-shadow: 0 0 4px #3465a4 inset;
-}
-
-
-/*
- * Definition for extra-bold fonts
- */
.extra-bold{
font-family: "Open Sans Bold", Arial, Helvetica, sans-serif;
font-weight: 300;
@@ -357,3 +298,19 @@ ul.pagination a:hover
#formset .ym-fbox-text{
/*float: none;*/
}
+
+/**************************************************************
+ * Carousel on the feature page
+ **************************************************************/
+#feature-carousel .carousel-caption {
+ background-color: red;
+}
+
+#feature-carousel .carousel-caption
+{
+ background-color: rgba(0, 0, 0, 0.75);
+ position: relative;
+ left: auto;
+ right: auto;
+ bottom: auto;
+}
\ No newline at end of file
diff --git a/wger/manager/templates/tags/pagination.html b/wger/manager/templates/tags/pagination.html
index 1536416e6..82a684a0f 100644
--- a/wger/manager/templates/tags/pagination.html
+++ b/wger/manager/templates/tags/pagination.html
@@ -1,17 +1,16 @@
{% load i18n %}
-<div class="pagination">
-
<ul class="pagination">
-
- <li>
- {% if page.has_previous %}
+ {% if page.has_previous %}
+ <li>
<a href="?page={{ page.previous_page_number }}"
class="load-maincontent">« {% trans "previous" %}</a>
- {% else %}
- <span class="deactivated">« {% trans "previous" %}</span>
- {% endif %}
- </li>
+ </li>
+ {% else %}
+ <li class="disabled">
+ <a href="#">« {% trans "previous" %}</a>
+ </li>
+ {% endif %}
{% for i in page_range %}
{% if page.number != i %}
@@ -21,19 +20,20 @@
</li>
{% else %}
<li class="active">
- {{i}}
+ <a href="#">{{i}}</a>
</li>
{% endif %}
{% endfor %}
- <li>
{% if page.has_next %}
- <a href="?page={{ page.next_page_number }}"
- class="load-maincontent">{%trans "next" %} »</a>
+ <li>
+ <a href="?page={{ page.next_page_number }}"
+ class="load-maincontent">{%trans "next" %} »</a>
+ </li>
{% else %}
- <span class="deactivated">{%trans "next" %} »</span>
+ <li class="disabled">
+ <a href="#">{%trans "next" %} »</a>
+ </li>
{% endif %}
- </li>
</ul>
-</div>
diff --git a/wger/software/templates/functions.html b/wger/software/templates/functions.html
index e8f8d5231..596c7c3bf 100644
--- a/wger/software/templates/functions.html
+++ b/wger/software/templates/functions.html
@@ -12,19 +12,8 @@ your exercises and workouts. It started as a pet project of mine to replace my
growing collection of different spreadsheets, but it has become something other
people could also find useful.{% endblocktrans %}</p>
-<div id="myCarousel" class="carousel slide" style="border: 1px solid rgb(221, 221, 221);margin-top: 1em;">
- <!--
- <ol class="carousel-indicators">
- <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
- <li data-target="#myCarousel" data-slide-to="1"></li>
- <li data-target="#myCarousel" data-slide-to="2"></li>
- <li data-target="#myCarousel" data-slide-to="3"></li>
- <li data-target="#myCarousel" data-slide-to="4"></li>
- <li data-target="#myCarousel" data-slide-to="5"></li>
- <li data-target="#myCarousel" data-slide-to="6"></li>
- </ol>
- -->
- <!-- Carousel items -->
+<div id="feature-carousel" class="carousel slide" data-ride="carousel" style="border: 1px solid rgb(221, 221, 221);margin-top: 1em;">
+
<div class="carousel-inner">
<div class="item active">
<img src="{% static 'images/screen7-crop.png' %}" width="700">
@@ -91,41 +80,46 @@ ingredients.{% endblocktrans %}</p>
</div>
</div>
<!-- Carousel nav -->
- <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
- <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
+ <a class="carousel-control left" href="#feature-carousel" data-slide="prev">&lsaquo;</a>
+ <a class="carousel-control right" href="#feature-carousel" data-slide="next">&rsaquo;</a>
</div>
<h3>{% trans "In short:" %}</h3>
-<div class="ym-grid linearize-level-1">
- <div class="ym-g33 ym-gl">
- <div class="ym-gbox-left">
- <div class="warning box">
- <h3>{% trans "a workout manager" %}</h3>
- <p>{% blocktrans %}create and manage your workout routines by selecting how
+<div class="row">
+ <div class="col-md-4">
+ <div class="panel panel-primary">
+ <div class="panel-heading">
+ <h3 class="panel-title">{% trans "a workout manager" %}</h3>
+ </div>
+ <div class="panel-body">
+ {% blocktrans %}create and manage your workout routines by selecting how
many days your workout constists of, and adding different exercises to each.
- Print the generated PDF to keep a log.{% endblocktrans %}</p>
+ Print the generated PDF to keep a log.{% endblocktrans %}
</div>
</div>
</div>
- <div class="ym-g33 ym-gl">
- <div class="ym-gbox-left">
- <div class="warning box">
- <h3>{% trans "a weight tracker" %}</h3>
- <p>{% blocktrans %}keep track of your progress with the weight log chart
+ <div class="col-md-4">
+ <div class="panel panel-primary">
+ <div class="panel-heading">
+ <h3 class="panel-title">{% trans "a weight tracker" %}</h3>
+ </div>
+ <div class="panel-body">
+ {% blocktrans %}keep track of your progress with the weight log chart
for each exercise and your own body weight. This makes it easy to see if you
- are reaching your goals or need to adjust something.{% endblocktrans %}</p>
+ are reaching your goals or need to adjust something.{% endblocktrans %}
</div>
</div>
</div>
- <div class="ym-g33 ym-gr">
- <div class="ym-gbox-left">
- <div class="warning box">
- <h3>{% trans "a nutrition manager" %}</h3>
- <p>{% blocktrans %}create a diet plan and see its nutritional
+ <div class="col-md-4">
+ <div class="panel panel-primary">
+ <div class="panel-heading">
+ <h3 class="panel-title">{% trans "a nutrition manager" %}</h3>
+ </div>
+ <div class="panel-body">{% blocktrans %}create a diet plan and see its nutritional
values (total energy, protein, carbohydrates, and so on) about
- it. Select from more than 8000 ingredients for this.{% endblocktrans %}</p>
+ it. Select from more than 8000 ingredients for this.{% endblocktrans %}
</div>
</div>
</div>