Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixos-search
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e1930e1d404e
Choose a base ref
...
head repository: NixOS/nixos-search
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ce541bf887f4
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 16, 2021

  1. apply styles to packages

    turboMaCk committed Jan 16, 2021
    Copy the full SHA
    ce541bf View commit details
Showing with 15 additions and 10 deletions.
  1. +3 −3 src/Page/Packages.elm
  2. +12 −7 src/index.less
6 changes: 3 additions & 3 deletions src/Page/Packages.elm
Original file line number Diff line number Diff line change
@@ -483,12 +483,12 @@ viewResultItem channel showNixOSDetails show item =
[ class "tab-content" ]
[ div
[ classList
[ ( "tab-pane", True )
, ( "active", not showNixOSDetails )
[ ( "active", not showNixOSDetails )
]
, class "tab-pane"
, id "package-details-nixpkgs"
]
[ pre []
[ pre [ class "code-block" ]
[ text "nix-env -iA nixpkgs."
, strong [] [ text item.source.attr_name ]
]
19 changes: 12 additions & 7 deletions src/index.less
Original file line number Diff line number Diff line change
@@ -12,6 +12,16 @@
}
}

.search-result-item() {
&:hover {
cursor: pointer;

.search-result-button {
text-decoration: underline;
}
}
}

/* ------------------------------------------------------------------------- */
/* -- Layout --------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
@@ -303,6 +313,7 @@ header .navbar.navbar-static-top {
}

&.package {
.search-result-item();

// short details of a pacakge
& > :nth-child(3) {
@@ -371,13 +382,7 @@ header .navbar.navbar-static-top {
}

&.option {
&:hover {
cursor: pointer;

.search-result-button {
text-decoration: underline;
}
}
.search-result-item();

// short details of a pacakge
& > :nth-child(3) {