]> git.agnieray.net Git - galette.git/commitdiff
Inverted pointing menu on documents public list
authorGuillaume AGNIERAY <dev@agnieray.net>
Mon, 15 Apr 2024 21:13:24 +0000 (23:13 +0200)
committerJohan Cwiklinski <trasher@x-tnd.be>
Mon, 15 Apr 2024 21:28:17 +0000 (23:28 +0200)
fixes #1820

galette/templates/default/pages/documents_public_list.html.twig
ui/semantic/galette/collections/menu.overrides

index 58490cd796564cc0e93c747e8355a4191b5e9e6f..8034ac4ec98393e91a48c8435d1d860ccc33614f 100644 (file)
@@ -33,8 +33,8 @@
         </div>
     {% else %}
         <div class="ui stackable grid">
-            <div class="four wide left attached column">
-                <div class="ui stackable vertical fluid tabular menu tabbed">
+            <div class="four wide column">
+                <div class="ui vertical inverted pointing fluid menu tabbed">
         {% for type, documents in typed_documents %}
                     <a class="{% if loop.index == 1 %}active {% endif %}item" data-tab="{{ _self.getSlug(type) }}">
                         {{ _T(type) }}
         {% endfor %}
                 </div>
             </div>
-            <div class="twelve wide stretched right attached column">
+            <div class="twelve wide column">
         {% for type, documents in typed_documents %}
-                <div class="ui seamless right attached tab segment{% if loop.index == 1 %} active{% endif %}" data-tab="{{ _self.getSlug(type) }}">
+                <div class="ui tab{% if loop.index == 1 %} active{% endif %}" data-tab="{{ _self.getSlug(type) }}">
+                    <div class="ui segment">
+                        <div class="ui divided relaxed list">
             {% for document in documents %}
-                    <div class="ui relaxed divided list">
-                        <div class="item">
-                            <div class="ui tiny image">
-                                <i class="large file middle aligned icon"></i>
-                            </div>
-                            <div class="content">
-                                <a class="ui small header" href="{{ url_for('getDocumentFile', {'id': document.getID()}) }}">
-                                    {{ document.getDocumentFilename() }}
-                                </a>
-                                <div class="description">
-                                    {% if document.getComment %}{{ document.getComment()|raw }}{% endif %}
+                            <div class="item">
+                                <div class="ui tiny image">
+                                    <i class="large file middle aligned icon"></i>
                                 </div>
-                                <div class="extra">
-                                    <div class="ui right floated meta">
-                                        <span class="date ui small text">
-                                            <i class="clock outline icon"></i>
-                                            {{ document.getCreationDate() }}
-                                        </span>
-                                        <div class="ui label">{{ document.getPermissionName() }}</div>
+                                <div class="content">
+                                    <a class="ui small header" href="{{ url_for('getDocumentFile', {'id': document.getID()}) }}">
+                                        {{ document.getDocumentFilename() }}
+                                    </a>
+                                    <div class="description">
+                                        {% if document.getComment %}{{ document.getComment()|raw }}{% endif %}
+                                    </div>
+                                    <div class="extra">
+                                        <div class="ui right floated meta">
+                                            <span class="date ui small text">
+                                                <i class="clock outline icon"></i>
+                                                {{ document.getCreationDate() }}
+                                            </span>
+                                            <div class="ui label">{{ document.getPermissionName() }}</div>
+                                        </div>
                                     </div>
                                 </div>
                             </div>
+            {% endfor %}
                         </div>
                     </div>
-            {% endfor %}
                 </div>
         {% endfor %}
             </div>
index 5a4894e23df26bc4ab9df16241e6070d6ce07b41..b995814b809723e17ba1e1b25fb798059b917dbe 100644 (file)
       Vertical
   ---------------*/
 
-  .ui.vertical.menu:not(.tabular) {
+  .ui.vertical.menu:not(.pointing) {
     display: block;
     flex-direction: column;
     background: @verticalBackground;
     box-shadow: @verticalBoxShadow;
   }
-  .ui.vertical.menu:not(.tabular) {
+  .ui.vertical.menu:not(.pointing) {
     border: @border;
   }
-  .ui.vertical.menu:not(.tabular) div.item .ui.button {
+  .ui.vertical.menu:not(.pointing) div.item .ui.button {
     width: 100%;
     border: @border;
     margin: 0 0 .4rem 0;
     box-shadow: none;
   }
-  .ui.vertical.menu:not(.tabular) div.item .item.button::before {
+  .ui.vertical.menu:not(.pointing) div.item .item.button::before {
     content: none;
   }
   .ui.vertical.accordion.menu {
       }
     }
   }
+  .ui.vertical.inverted.pointing.menu {
+    .item:not(.active, :hover) {
+      .small.disabled.text {
+        color: @midWhite;
+      }
+    }
+  }
 }
 
 /* --------------