From 0a6158941a3cbc8fdde6a936e36a8394f7f7b782 Mon Sep 17 00:00:00 2001
From: Jan Seipel <jan.seipel@swr.de>
Date: Fri, 12 Apr 2024 11:08:16 +0000
Subject: [PATCH] Update test-anfragen-pool-style.user.css

---
 test-anfragen-pool-style.user.css | 208 +++++++++++++++++-------------
 1 file changed, 116 insertions(+), 92 deletions(-)

diff --git a/test-anfragen-pool-style.user.css b/test-anfragen-pool-style.user.css
index 2e8da0c..6bc471e 100644
--- a/test-anfragen-pool-style.user.css
+++ b/test-anfragen-pool-style.user.css
@@ -8,7 +8,10 @@
 
 @-moz-document domain("test-anfragen-pool.swrapp.net") {
     /* Quelltext hier eingeben... */
-    /* ===== ZU ERSETZENDE ELEMENTE VERSTECKEN ===== */
+    
+    /* ===== BEREICH: DASHBOARD ===== */
+    
+    /* zu entfernende Elemente verstecken */
     *[title="gesperrt"],
     *[title="frei"],
     *[title="Bewegtbild | BB FESAD"],
@@ -23,104 +26,125 @@
         position: relative;
         padding: 0.1em 0.9em;
         margin: 0.1em 0em 0.3em 0em;
+        
+        &:after { /* Container für neue Elemente einfügen (LESS-Befehl)*/
+            display: inline-block;
+            padding: 0.1em 0.9em;
+            margin: 0.1em;
+            border-radius: 5px;
+            visibility: visible;
+            position: absolute;
+            top: 0;
+            left: 0;
+            white-space: nowrap;
+        }
+    }
+    
+    /* neue Elemente befüllen */
+    *[title="gesperrt"]:after   {padding: 0em 0em; margin: 0.2em 0em; content: "🚫 in Bearb.";}
+    *[title="frei"]:after       {padding: 0em 0em; margin: 0.2em 0em; content: "⚡ frei";}
+
+    *[title="Bewegtbild | BB FESAD"]:after                         {content: "Bewegtbild 🎬"; background-color: #A6E9ED;}
+    *[title="Musik | HFDB"]:after                                  {content: "Musik 🎵"; background-color: #CEF0CD;}
+    *[title="Geräusche | HFDB"]:after                              {content: "Geräusch 🔔"; background-color: #9AD29A;}
+    *[title="Text | MDH:CS Presse Artikel"]:after                  {content: "Presse 📰"; background-color: #F1D9CC;}
+    *[title="Buch | BIBDIA OPAC"]:after                            {content: "Buch 📖"; background-color: #F6D1D5;}
+    *[title="Wort | HFDB"]:after                                   {content: "Wort 💬"; background-color: #C2D6E7;}
+    *[title="Foto"]:after                                          {content: "Foto 📷"; background-color: #B9A3D3;}
+    *[title="Online | Internet Social Media Seeding Prota"]:after  {content: "Online 🌐"; background-color: #E9C7CD;}
+    
+    /* Ticket-ID in den Übersichtstabellen ausblenden */
+    td:has(>.MasterActionLink),
+    .TicketNumber {
+        display: none;
     }
+    
+    
+    /* Message of the day: Links stylen */
+    .MessageOfTheDay a {
+        color: #3498db;
+        text-decoration: underline;
+        
+        &:hover {
+            text-decoration: none;
+        }
+    }
+    
+    /* ===== BEREICH: AGENT-TICKET-PHONE ===== */
 
+    /* Feld "Besitzer" eindeutiger benennen */
+    
     *[for="NewUserID"] {
         visibility: hidden;
         position: relative;
-    }
-
-    *[for="NewUserID"]:after {
-        visibility: visible;
-        position: absolute;
-        top: 0;
-        right: 0;
-        padding-left: 0px;
-    }
-
-
-    /* ===== LEERE CONTAINER FÜR NEUE ELEMENTE EINFÜGEN ===== */
-    *[title="gesperrt"]:after,
-    *[title="frei"]:after,
-    *[title="Bewegtbild | BB FESAD"]:after,
-    *[title="Musik | HFDB"]:after,
-    *[title="Geräusche | HFDB"]:after,
-    *[title="Text | MDH:CS Presse Artikel"]:after,
-    *[title="Buch | BIBDIA OPAC"]:after,
-    *[title="Online | Internet Social Media Seeding Prota"]:after,
-    *[title="Wort | HFDB"]:after,
-    *[title="Foto"]:after {
-        display: inline-block;
-        padding: 0.1em 0.9em;
-        margin: 0.1em;
-        border-radius: 5px;
-        visibility: visible;
-        position: absolute;
-        top: 0;
-        left: 0;
-    }
-
-    /* ===== NEUE ELEMENTE BEFÜLLEN ===== */
-    *[title="gesperrt"]:after {
-        padding: 0em 0em;
-        margin: 0.2em 0em;
-        content: "🚫 in Bearb.";
-    }
-
-    *[title="frei"]:after {
-        padding: 0em 0em;
-        margin: 0.2em 0em;
-        /*content: "🅵🆁🅴🅴 frei";*/
-        /* content: "❗ frei" */
-        content: "⚡ frei"
-    }
-
-    *[for="NewUserID"]:after {
-        content: "Sperren für Besitzer:";
-    }
-    *[title="Bewegtbild | BB FESAD"]:after {
-        content: "Bewegtbild 🎬";
-        background-color: #A6E9ED;
-    }
-    *[title="Musik | HFDB"]:after {
-        content: "Musik 🎵";
-        background-color: #CEF0CD;
-    }
-    *[title="Geräusche | HFDB"]:after {
-        content: "Geräusch 🔔";
-        background-color: #9AD29A;
-    }
-    *[title="Text | MDH:CS Presse Artikel"]:after {
-        content: "Presse 📰";
-        background-color: #F1D9CC;
-    }
-    *[title="Buch | BIBDIA OPAC"]:after {
-        content: "Buch 📖";
-        background-color: #F6D1D5;
-    }
-    *[title="Wort | HFDB"]:after {
-        content: "Wort 💬";
-        background-color: #C2D6E7;
-    }
-    *[title="Foto"]:after {
-        content: "Foto 📷";
-        background-color: #B9A3D3;
-    }
-    *[title="Online | Internet Social Media Seeding Prota"]:after {
-        content: "Online 🌐";
-        background-color: #E9C7CD;
-    }
+        
+        &:after {
+            visibility: visible;
+            position: absolute;
+            top: 0;
+            right: 0;
+            padding-left: 0px;
+            content: "Sperren für Besitzer*in:";
+        }
+    }  
 
+    /* nicht benötigte Elemente verstecken */ 
+    label[for="CustomerID"],
+    label[for="CustomerID"] + div,
+    label[for="SLAID"],
+    label[for="SLAID"] + div,
+    label[for="NewResponsibleID"],
+    label[for="NewResponsibleID"] + div,
+    label[for="Dest"],
+    label[for="Dest"] + div,
+    .Row_DynamicField_MasterSlave,
+    a[title="Queue ändern"]
+    {
+        display: none !important;
+    }
+    
+    /* BEREICH: TICKET-ZOOM */
 
-    /* ===== EXPERIMENTE ===== */
-    /* Ticket-ID in den Übersichtstabellen ausblenden */
-    td:has(>.MasterActionLink),
-    .TicketNumber {
-        display: none;
+    #nav-Spezialaktionen,
+    #nav-MasterSlave
+    {
+        display: none !important;
     }
+}
 
-    /* Nicht benötigte Elemente unsichtbar machen */
-    label[for="CustomerID"] {
-        display: none;
-    }
+@-moz-document url-prefix("https://test-anfragen-pool.swrapp.net/otrs/index.pl?Action=AgentTicketClose") {
+    
+    /* BEREICH: AGENT-TICKET-CLOSE */
+    
+    
+    /* Feld Bearbeitungsdauer hervorheben */
+    label[for="TimeUnits"]
+    {
+        color: black !important;
+        background-color: #ffcccb;
+        padding: 1em 0em !important;
+        
+        & + div {
+            background-color: #ffcccb;
+            padding-top: 1em !important;
+            padding-bottom: 1em !important;
+            
+            & input {
+                border: 1px solid red;
+                border-radius: 4px;
+            }
+        }
+    }
+    
+    /* Nicht benötigte Felder verstecken */
+    
+    label[for="Subject"],
+    label[for="RichText"]
+    {
+        display: none !important;
+        
+        & + div {
+            display: none;
+        }
+    }    
 }
\ No newline at end of file
-- 
GitLab