mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-25 03:26:30 +00:00
309f13ec84
* Extend dependency status box to report more issues - replace render_dev_dependency_box with an extended render_dependency_box - reports insecure dev dependencies, outdated main dependencies, and outdated dev dependencies - handle pluralization in dependency count message - change methods in AnalyzeDependenciesOutcome - add count_outdated - remove any_dev_issues - remove AnalyzedDependencies::any_dev_issues * Format status.rs * Simplify AnalyzeDependenciesOutcome method impls - match ergonomics lint * Use bullet point list * Tweak dependency box again - only use list items if there is more than one dependency kind * Fix outdated dependency count - `count_outdated` already counts only main dependencies * Tweak dependency box to no longer assume non-zero issues - check for when all dependency component counts are zero, render nothing - always call `render_dependency_box` if it finds no security issues Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>
55 lines
1.5 KiB
Sass
55 lines
1.5 KiB
Sass
@import "../utilities/mixins"
|
|
|
|
$notification-background-color: $background !default
|
|
$notification-code-background-color: $scheme-main !default
|
|
$notification-radius: $radius !default
|
|
$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
|
|
$notification-padding-ltr: 1.25rem 2.5rem 1.25rem 1.5rem !default
|
|
$notification-padding-rtl: 1.25rem 1.5rem 1.25rem 2.5rem !default
|
|
|
|
$notification-colors: $colors !default
|
|
|
|
.notification
|
|
@extend %block
|
|
background-color: $notification-background-color
|
|
border-radius: $notification-radius
|
|
position: relative
|
|
+ltr
|
|
padding: $notification-padding-ltr
|
|
+rtl
|
|
padding: $notification-padding-rtl
|
|
a:not(.button):not(.dropdown-item)
|
|
color: currentColor
|
|
text-decoration: underline
|
|
strong
|
|
color: currentColor
|
|
code,
|
|
pre
|
|
background: $notification-code-background-color
|
|
pre code
|
|
background: transparent
|
|
& > .delete
|
|
+ltr-position(0.5rem)
|
|
position: absolute
|
|
top: 0.5rem
|
|
.title,
|
|
.subtitle,
|
|
.content
|
|
color: currentColor
|
|
// Colors
|
|
@each $name, $pair in $notification-colors
|
|
$color: nth($pair, 1)
|
|
$color-invert: nth($pair, 2)
|
|
&.is-#{$name}
|
|
background-color: $color
|
|
color: $color-invert
|
|
// If light and dark colors are provided
|
|
@if length($pair) >= 4
|
|
$color-light: nth($pair, 3)
|
|
$color-dark: nth($pair, 4)
|
|
&.is-light
|
|
background-color: $color-light
|
|
color: $color-dark
|
|
ul
|
|
list-style: disc
|
|
padding: 0 40
|