Explorar el Código

restrict width of table to maximum for large screen size and translate hyphens to non-breaking hyphens

Pi hace 2 años
padre
commit
e9b4c23c7c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      xml/style.xsl

+ 2 - 2
xml/style.xsl

@@ -25,7 +25,7 @@
 	      <link rel="stylesheet" href="https://shandan.one/css/responsive-visibility-collapse.css"/>
         <title><xsl:value-of select="name(current())"/></title>
       </head>
-      <body>
+      <body style="position: absolute; max-width: 68em; min-width: min(100%, 68em); left: 50%; transform: translate(max(-50%, -34em),0)">
         <table class="pure-table pure-table-bordered pure-table-striped">
           <tr style="text-transform: capitalize">
             <xsl:for-each select="$schema/xsd:complexType[@name=$rowtypename]/xsd:sequence/xsd:element/@name">
@@ -62,7 +62,7 @@
                 <xsl:when test="$elementtype = 'translation'">
                 </xsl:when>
                 <xsl:otherwise>
-                <td class="opt-md opt-lg opt-xl opt-xxl" style="line-height: 0.5"><xsl:value-of select="preceding-sibling::translation"/><p></p><xsl:value-of select="translate(.,' ','&#160;')"/></td>
+                <td class="opt-md opt-lg opt-xl opt-xxl" style="line-height: 0.5;"><xsl:value-of select="preceding-sibling::translation"/><p/><xsl:value-of select="translate(translate(.,' ','&#160;'),'-','&#8209;')"/></td>
                 </xsl:otherwise>
                 </xsl:choose>
               </xsl:for-each>