From: sirgazil--- via Guix-patches via <guix-patches@gnu.org>
To: 72314@debbugs.gnu.org
Cc: Luis Felipe <sirgazil@zoho.com>
Subject: [bug#72314] [PATCH v1 2/3] website: Move screenshots style to the screenshots style sheet.
Date: Mon, 29 Jul 2024 12:17:34 -0500 [thread overview]
Message-ID: <20240729171808.30569-2-sirgazil@zoho.com> (raw)
In-Reply-To: <20240729171808.30569-1-sirgazil@zoho.com>
From: Luis Felipe <sirgazil@zoho.com>
* website/themes/initial/css/index.css: Move screenshot rules to
screenshots.css.
* website/themes/initial/css/screenshots.css: Add screenshot rules from
index.css.
* website/apps/media/templates/screenshot.scm (screenshot-t): Don't use
the index.css.
* website/apps/media/templates/screenshots-overview.scm:
(screenshots-overview-t): Likewise, and use screenshots.css instead.
---
website/apps/media/templates/screenshot.scm | 3 +-
.../media/templates/screenshots-overview.scm | 2 +-
website/themes/initial/css/index.css | 61 ------------------
website/themes/initial/css/screenshots.css | 64 ++++++++++++++++++-
4 files changed, 65 insertions(+), 65 deletions(-)
diff --git a/website/apps/media/templates/screenshot.scm b/website/apps/media/templates/screenshot.scm
index a942ef6..377485a 100644
--- a/website/apps/media/templates/screenshot.scm
+++ b/website/apps/media/templates/screenshot.scm
@@ -26,8 +26,7 @@ system|GNU Hurd|GNU Guix package manager|GNU Guile|Guile \
Scheme|Transactional upgrades|Functional package \
management|Reproducibility") #\|)
#:active-menu-item (C_ "website menu" "Media")
- #:css (list (theme-url "css/index.css")
- (theme-url "css/screenshots.css"))
+ #:css (list (theme-url "css/screenshots.css"))
#:content
`(main
(section
diff --git a/website/apps/media/templates/screenshots-overview.scm b/website/apps/media/templates/screenshots-overview.scm
index 7663ad9..97e5af6 100644
--- a/website/apps/media/templates/screenshots-overview.scm
+++ b/website/apps/media/templates/screenshots-overview.scm
@@ -23,7 +23,7 @@ system|GNU Hurd|GNU Guix package manager|GNU Guile|Guile \
Scheme|Transactional upgrades|Functional package \
management|Reproducibility") #\|)
#:active-menu-item (C_ "website menu" "Media")
- #:css (list (theme-url "css/index.css"))
+ #:css (list (theme-url "css/screenshots.css"))
#:content
`(main
(section
diff --git a/website/themes/initial/css/index.css b/website/themes/initial/css/index.css
index a04f3b6..da9caf4 100644
--- a/website/themes/initial/css/index.css
+++ b/website/themes/initial/css/index.css
@@ -228,73 +228,12 @@ h2 {
color: #E6E6E6;
}
-.screenshots-box {
- padding: 40px 0px 0px 0px;
-}
-
-.screenshot-preview {
- font-size: 0.7em;
- margin: 40px auto;
- max-width: 250px;
- text-align: center;
-}
-
-.screenshot-preview a,
-.screenshot-preview img {
- border-radius: 5px;
- display: block;
-}
-
-.screenshot-preview a:link,
-.screenshot-preview a:visited {
- border-color: transparent;
- border-style: solid;
- border-width: thin;
- box-shadow: 0 0 4px gray;
- color: white;
- position: relative;
-}
-
-.screenshot-preview a:active,
-.screenshot-preview a:focus,
-.screenshot-preview a:hover {
- border-color: black;
- box-shadow: 0 0 4px black;
-}
-
-
-
-@media screen and (min-width: 300px) {
- .screenshot-inset-shadow {
- border-radius: 5px;
- box-shadow: inset 0 0 4px black;
- display: block;
- height: 140px;
- position: absolute;
- top: 0px;
- width: 250px;
- }
-
- .screenshot-preview a:active .screenshot-inset-shadow,
- .screenshot-preview a:focus .screenshot-inset-shadow,
- .screenshot-preview a:hover .screenshot-inset-shadow {
- box-shadow: none;
- }
-}
-
-
@media screen and (min-width: 480px) {
.button-big:link,
.button-big:visited {
display: inline-block;
}
-
- .screenshot-preview {
- display: inline-block;
- margin: 15px;
- vertical-align: top;
- }
}
diff --git a/website/themes/initial/css/screenshots.css b/website/themes/initial/css/screenshots.css
index 64f5f6a..296a99b 100644
--- a/website/themes/initial/css/screenshots.css
+++ b/website/themes/initial/css/screenshots.css
@@ -1,3 +1,65 @@
+.screenshots-box {
+ padding: 40px 0px 0px 0px;
+}
+
+.screenshot-preview {
+ font-size: 0.7em;
+ margin: 40px auto;
+ max-width: 250px;
+ text-align: center;
+}
+
+.screenshot-preview a,
+.screenshot-preview img {
+ border-radius: 5px;
+ display: block;
+}
+
+.screenshot-preview a:link,
+.screenshot-preview a:visited {
+ border-color: transparent;
+ border-style: solid;
+ border-width: thin;
+ box-shadow: 0 0 4px gray;
+ color: white;
+ position: relative;
+}
+
+.screenshot-preview a:active,
+.screenshot-preview a:focus,
+.screenshot-preview a:hover {
+ border-color: black;
+ box-shadow: 0 0 4px black;
+}
+
.screenshot-viewer {
background-color: black;
-}
\ No newline at end of file
+}
+
+
+
+@media screen and (min-width: 300px) {
+ .screenshot-inset-shadow {
+ border-radius: 5px;
+ box-shadow: inset 0 0 4px black;
+ display: block;
+ height: 140px;
+ position: absolute;
+ top: 0px;
+ width: 250px;
+ }
+
+ .screenshot-preview a:active .screenshot-inset-shadow,
+ .screenshot-preview a:focus .screenshot-inset-shadow,
+ .screenshot-preview a:hover .screenshot-inset-shadow {
+ box-shadow: none;
+ }
+}
+
+@media screen and (min-width: 480px) {
+ .screenshot-preview {
+ display: inline-block;
+ margin: 15px;
+ vertical-align: top;
+ }
+}
--
2.45.2
next prev parent reply other threads:[~2024-07-29 17:20 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-26 21:22 [bug#72314] [PATCH 0/2] website: Redesign home page sirgazil--- via Guix-patches via
2024-07-26 21:31 ` [bug#72314] [PATCH 1/2] " sirgazil--- via Guix-patches via
2024-07-26 21:31 ` [bug#72314] [PATCH 2/2] website: Move screenshots style to the screenshots style sheet sirgazil--- via Guix-patches via
2024-07-28 14:05 ` [bug#72314] [PATCH 1/2] website: Redesign home page pelzflorian (Florian Pelz)
2024-07-29 0:55 ` Luis Felipe via Guix-patches via
2024-07-29 17:10 ` [bug#72314] [PATCH 0/3] " sirgazil--- via Guix-patches via
2024-07-29 17:17 ` [bug#72314] [PATCH v1 1/3] " sirgazil--- via Guix-patches via
2024-07-29 17:17 ` sirgazil--- via Guix-patches via [this message]
2024-07-29 17:17 ` [bug#72314] [PATCH v1 3/3] website: Home page template: Untabify sirgazil--- via Guix-patches via
2024-07-30 15:37 ` [bug#72314] [PATCH v1 1/3] website: Redesign home page pelzflorian (Florian Pelz)
2024-07-30 17:17 ` Luis Felipe via Guix-patches via
2024-07-30 18:08 ` pelzflorian (Florian Pelz)
2024-07-30 22:44 ` Luis Felipe via Guix-patches via
2024-07-31 6:26 ` [bug#72314] claims Guix can make about reproducibility (was Re: [bug#72314] [PATCH v1 1/3] website: Redesign home page.) pelzflorian (Florian Pelz)
2024-07-31 12:47 ` Luis Felipe via Guix-patches via
2024-07-31 15:13 ` pelzflorian (Florian Pelz)
2024-07-31 16:25 ` Luis Felipe via Guix-patches via
2024-08-01 22:53 ` bug#72314: " pelzflorian (Florian Pelz)
2024-08-01 23:24 ` [bug#72314] " Luis Felipe via Guix-patches via
2024-07-31 16:18 ` [bug#72314] [PATCH v2 1/3] website: Redesign home page sirgazil--- via Guix-patches via
2024-07-31 16:18 ` [bug#72314] [PATCH v2 2/3] website: Move screenshots style to the screenshots style sheet sirgazil--- via Guix-patches via
2024-07-31 16:18 ` [bug#72314] [PATCH v2 3/3] website: Home page template: Untabify sirgazil--- via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240729171808.30569-2-sirgazil@zoho.com \
--to=guix-patches@gnu.org \
--cc=72314@debbugs.gnu.org \
--cc=sirgazil@zoho.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).