diff options
Diffstat (limited to 'searx/static')
-rw-r--r-- | searx/static/themes/simple/gruntfile.js | 6 | ||||
-rw-r--r-- | searx/static/themes/simple/src/less/rss.less | 45 | ||||
-rw-r--r-- | searx/static/themes/simple/xsl/rss.xsl | 39 |
3 files changed, 51 insertions, 39 deletions
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index 9410a674b..c2cbad315 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -136,6 +136,12 @@ module.exports = function (grunt) { nonull: true, filter: file_exists, }, + { + src: ['src/less/rss.less'], + dest: 'css/rss.min.css', + nonull: true, + filter: file_exists, + }, ], }, }, diff --git a/searx/static/themes/simple/src/less/rss.less b/searx/static/themes/simple/src/less/rss.less new file mode 100644 index 000000000..0bc6622e3 --- /dev/null +++ b/searx/static/themes/simple/src/less/rss.less @@ -0,0 +1,45 @@ +@import (inline) "../../node_modules/normalize.css/normalize.css"; +@import "definitions.less"; + +.text-size-adjust (@property: 100%) { + -webkit-text-size-adjust: @property; + -ms-text-size-adjust: @property; + -moz-text-size-adjust: @property; + text-size-adjust: @property; +} + +// Reset padding and margin +html, +body, +main { + padding: 0; + margin: 0; +} + +html { + font-family: sans-serif; + font-size: 0.9em; + .text-size-adjust; + + color: var(--color-base-font); + background-color: var(--color-base-background); + + scroll-behavior: smooth; +} + +body { + margin-inline: 1rem; +} + +a { + text-decoration: none; + color: var(--color-url-font); + + &:visited { + color: var(--color-url-visited-font); + + .highlight { + color: var(--color-url-visited-font); + } + } +} diff --git a/searx/static/themes/simple/xsl/rss.xsl b/searx/static/themes/simple/xsl/rss.xsl deleted file mode 100644 index 7de7f8037..000000000 --- a/searx/static/themes/simple/xsl/rss.xsl +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0"?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:output method="html" version="5" encoding="UTF-8" indent="yes" /> - <xsl:template match="rss"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <title><xsl:value-of select="channel/title" />RSS Feed</title> - <meta charset="UTF-8" /> - <meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" /> - <meta name="viewport" content="width=device-width,initial-scale=1" /> - </head> - <body> - <header> - <h2> - <xsl:value-of select="channel/description" /> - </h2> - </header> - <hr /> - <main> - <xsl:for-each select="channel/item"> - <article> - <h3> - <a hreflang="en" target="_blank"> - <xsl:attribute name="href"> - <xsl:value-of select="link" /> - </xsl:attribute> - <xsl:value-of select="title" /> - </a> - </h3> - <time><xsl:value-of select="pubDate" /></time> - <p><xsl:value-of select="description" /></p> - <hr /> - </article> - </xsl:for-each> - </main> - </body> - </html> - </xsl:template> -</xsl:stylesheet> |