Changed zgled list from <div>s to <ul><li>s
Also, highlighting kolokator and iztocnica in zgled-s.
This commit is contained in:
		
							parent
							
								
									bf91f9dbd9
								
							
						
					
					
						commit
						56cd453932
					
				
							
								
								
									
										52
									
								
								view.xsl
									
									
									
									
									
								
							
							
						
						
									
										52
									
								
								view.xsl
									
									
									
									
									
								
							| @ -35,7 +35,8 @@ | |||||||
|     <style type="text/css"> |     <style type="text/css"> | ||||||
|         :root { |         :root { | ||||||
|             --light-gray: #999999; |             --light-gray: #999999; | ||||||
|             --dark-gray: #666666 |             --dark-gray: #666666; | ||||||
|  |             --light-red: #dd8899; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         .xslt-clanek { |         .xslt-clanek { | ||||||
| @ -63,7 +64,26 @@ | |||||||
|             color: var(--light-gray);  |             color: var(--light-gray);  | ||||||
|             font-weight: bold; |             font-weight: bold; | ||||||
|         } |         } | ||||||
|  |         .xslt-indicator { | ||||||
|  |             color: var(--light-gray);  | ||||||
|  |             font-style: italic;  | ||||||
|  |             text-transform: uppercase; | ||||||
|  |         } | ||||||
|  |         .xslt-zgledi { | ||||||
|  |             list-style-type: circle;  | ||||||
|  |             float: left;  | ||||||
|  |             margin-left: 0em;  | ||||||
|  |             color: var(--dark-gray);  | ||||||
|  |             margin: 0.5em 0;" | ||||||
|  |         } | ||||||
|  |         .xslt-zgled-highlight { | ||||||
|  |             color: var(--light-red); | ||||||
|  |         } | ||||||
|          |          | ||||||
|  |         .xslt-clear { | ||||||
|  |             clear:both;  | ||||||
|  |             font-size:0; | ||||||
|  |         } | ||||||
|     </style> |     </style> | ||||||
|     </xsl:variable> |     </xsl:variable> | ||||||
|      |      | ||||||
| @ -76,7 +96,7 @@ | |||||||
|         <div style="padding: 0.5em 0;"> |         <div style="padding: 0.5em 0;"> | ||||||
|             <a class="morelessbutton"  href="javascript:void(null)">▼ more</a> |             <a class="morelessbutton"  href="javascript:void(null)">▼ more</a> | ||||||
|         </div> |         </div> | ||||||
|         <div class="hideable" style="display: none"> |         <div class="hideable" style="display: none; "> | ||||||
|             <xsl:apply-templates select="skladenjske_skupine"/> |             <xsl:apply-templates select="skladenjske_skupine"/> | ||||||
|         </div> |         </div> | ||||||
|     </xsl:template> |     </xsl:template> | ||||||
| @ -93,7 +113,7 @@ | |||||||
|                           |                           | ||||||
|     <!-- Tags to convert to insert space before --> |     <!-- Tags to convert to insert space before --> | ||||||
|      |      | ||||||
|     <xsl:template match="zgled//* | kolokacije//p | kolokacije//i"> |     <xsl:template match="kolokacije//p | kolokacije//i"> | ||||||
|         <xsl:text xml:space="preserve"> </xsl:text> |         <xsl:text xml:space="preserve"> </xsl:text> | ||||||
|         <xsl:apply-templates/> |         <xsl:apply-templates/> | ||||||
|     </xsl:template> |     </xsl:template> | ||||||
| @ -166,9 +186,10 @@ | |||||||
|     <xsl:template match="kolokacija | r_kolokacija"> |     <xsl:template match="kolokacija | r_kolokacija"> | ||||||
|         <xsl:text xml:space="preserve"> </xsl:text> |         <xsl:text xml:space="preserve"> </xsl:text> | ||||||
|         <span style="color: #cc3366;"> |         <span style="color: #cc3366;"> | ||||||
|             <xsl:apply-templates/> |             <xsl:apply-templates select="ks | p | i"/> | ||||||
|         </span> |         </span> | ||||||
|         <xsl:text xml:space="preserve"> </xsl:text> |         <xsl:text xml:space="preserve"> </xsl:text> | ||||||
|  |         <xsl:apply-templates select="zgledi"/> | ||||||
|     </xsl:template> |     </xsl:template> | ||||||
|      |      | ||||||
|     <xsl:template match="kolokacije//ks"> |     <xsl:template match="kolokacije//ks"> | ||||||
| @ -184,27 +205,26 @@ | |||||||
|      |      | ||||||
|     <xsl:template match="indikator | oznaka"> |     <xsl:template match="indikator | oznaka"> | ||||||
|         <xsl:text xml:space="preserve"> </xsl:text> |         <xsl:text xml:space="preserve"> </xsl:text> | ||||||
|         <span style="color: #999999; font-style: italic; text-transform: uppercase"> |         <span class="xslt-indicator"> | ||||||
|             <xsl:apply-templates/> |             <xsl:apply-templates/> | ||||||
|         </span> |         </span> | ||||||
|         <xsl:text xml:space="preserve"> </xsl:text> |         <xsl:text xml:space="preserve"> </xsl:text> | ||||||
|     </xsl:template> |     </xsl:template> | ||||||
|      |      | ||||||
|    <xsl:template match="zgledi"> |    <xsl:template match="zgledi"> | ||||||
|         <div style="margin: 0.5em 0;"> |         <ul class="xslt-zgledi" > | ||||||
|             <xsl:apply-templates/> |             <xsl:apply-templates/> | ||||||
|         </div> |         </ul> | ||||||
|  |         <div class="xslt-clear"></div> | ||||||
|     </xsl:template> |     </xsl:template> | ||||||
|      |      | ||||||
|     <xsl:template match="zgled"> |     <xsl:template match="zgled"> | ||||||
|         <div> |         <li><xsl:apply-templates/></li> | ||||||
|             <div style="float: left; margin-left: 0.5em; color: #999999;"> |  | ||||||
|                 » |  | ||||||
|             </div> |  | ||||||
|             <div style="margin-left: 2em; color: #666666; font-weight: bold;"> |  | ||||||
|                 <xsl:apply-templates/> |  | ||||||
|             </div> |  | ||||||
|             <div style="clear: left;"></div> |  | ||||||
|         </div> |  | ||||||
|     </xsl:template> |     </xsl:template> | ||||||
|  |      | ||||||
|  |     <xsl:template match="zgled//i | zgled//k | zgled//l"> | ||||||
|  |         <xsl:text xml:space="preserve"> </xsl:text> | ||||||
|  |         <span class="xslt-zgled-highlight"><xsl:apply-templates/></span> | ||||||
|  |     </xsl:template> | ||||||
|  |          | ||||||
|   </xsl:stylesheet> |   </xsl:stylesheet> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user