From dfd3ee921242781011625a2e25ba103f9e4890bd Mon Sep 17 00:00:00 2001 From: James Nebeker Date: Wed, 24 Aug 2022 11:55:36 -0400 Subject: [PATCH 1/2] Silence deprecation warning with SASS color function Resolve a deprecation warning that we see often thanks to our use of the "times" operator: The operation `#3a3f51 times 0.8` is deprecated and will be an error in future versions. Consider using Sass's color functions instead. https://sass-lang.com/documentation/Sass/Script/Functions.html#other_color_functions This is done with the `scale-color` function that lightens the color by 20 percent. Co-authored-by: Aaron Hill Co-authored-by: Alex Stone Co-authored-by: Corrie Leech Co-authored-by: JC Avena --- .../stylesheets/radius-theme/app/docs.scss | 20 ++++++++++--------- radius-rails.gemspec | 1 - 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/app/assets/stylesheets/radius-theme/app/docs.scss b/app/assets/stylesheets/radius-theme/app/docs.scss index c2b09f1..31e7ad5 100644 --- a/app/assets/stylesheets/radius-theme/app/docs.scss +++ b/app/assets/stylesheets/radius-theme/app/docs.scss @@ -1,9 +1,12 @@ +@use "sass:color"; + // Margins $sidepad: 30px; // Padding to the left of the sidebar // Colors $txt: #505050; $accent: $gray-dark; +$hover-color: scale-color($accent, $lightness: -20%); // Dimensions $sidebar-width: 180px; @@ -43,7 +46,7 @@ $pre-width: 380px; color: $accent; } &:hover { - color: $accent*0.8; + color: $hover-color; background-color: rgba(255,255,255,.75); text-decoration: none; } @@ -75,12 +78,12 @@ $pre-width: 380px; color: $txt !important; } font-weight: bold !important; - + // Indicator &:after { content: ''; display: block; - + position: absolute; top: 50%; margin-top: -2px; @@ -101,7 +104,7 @@ $pre-width: 380px; @media only screen and (min-width: $mq-tablet) { margin: -20px; // expand over wrapper padding } - + .flatdoc { @media only screen and (min-width: $mq-tablet) { display: table; @@ -135,7 +138,7 @@ $pre-width: 380px; @include menubar(); } } - + .flatdoc-content { @media only screen and (min-width: $mq-tablet) { display: table-cell; @@ -148,7 +151,7 @@ $pre-width: 380px; padding-top: 1px; padding-bottom: 50px; background-color: #fff; - + pre { background-color: #f3f6fb; border: 1px solid $gray; @@ -170,7 +173,7 @@ $pre-width: 380px; } } } - + > h1 { padding: 11px 0; margin: 0; @@ -183,7 +186,7 @@ $pre-width: 380px; margin: 0 -20px; } } - + .button { display: inline-block; padding: 6px 16px; @@ -194,4 +197,3 @@ $pre-width: 380px; } } - diff --git a/radius-rails.gemspec b/radius-rails.gemspec index 6692d1f..ad3ef84 100644 --- a/radius-rails.gemspec +++ b/radius-rails.gemspec @@ -18,7 +18,6 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - #spec.add_dependency "font-awesome-rails" spec.add_dependency "railties", ">= 3.2", "<= 7.0" spec.add_development_dependency "bundler", "~> 1.6" From ddf213f9a3763d7ee626d35954dcf03932d8c398 Mon Sep 17 00:00:00 2001 From: James Nebeker Date: Wed, 31 Aug 2022 11:07:58 -0400 Subject: [PATCH 2/2] Bump version to 3.1.2 We only fixed a deprecation warning, we didn't change anything, so this only calls for a patch version bump. Co-authored-by: Aaron Hill Co-authored-by: Alex Stone Co-authored-by: Corrie Leech Co-authored-by: JC Avena --- lib/radius/rails/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/radius/rails/version.rb b/lib/radius/rails/version.rb index 0ecb830..1588b50 100644 --- a/lib/radius/rails/version.rb +++ b/lib/radius/rails/version.rb @@ -1,5 +1,5 @@ module Radius module Rails - VERSION = "3.1.1" + VERSION = "3.1.2" end end