Skip to content

Commit

Permalink
Merge pull request #38 from RadiusNetworks/stop-the-sass
Browse files Browse the repository at this point in the history
Silence deprecation warning with SASS color function
  • Loading branch information
jnebeker committed Aug 31, 2022
2 parents 205f79a + ddf213f commit de3583b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
20 changes: 11 additions & 9 deletions app/assets/stylesheets/radius-theme/app/docs.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -135,7 +138,7 @@ $pre-width: 380px;
@include menubar();
}
}

.flatdoc-content {
@media only screen and (min-width: $mq-tablet) {
display: table-cell;
Expand All @@ -148,7 +151,7 @@ $pre-width: 380px;
padding-top: 1px;
padding-bottom: 50px;
background-color: #fff;

pre {
background-color: #f3f6fb;
border: 1px solid $gray;
Expand All @@ -170,7 +173,7 @@ $pre-width: 380px;
}
}
}

> h1 {
padding: 11px 0;
margin: 0;
Expand All @@ -183,7 +186,7 @@ $pre-width: 380px;
margin: 0 -20px;
}
}

.button {
display: inline-block;
padding: 6px 16px;
Expand All @@ -194,4 +197,3 @@ $pre-width: 380px;
}

}

2 changes: 1 addition & 1 deletion lib/radius/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Radius
module Rails
VERSION = "3.1.1"
VERSION = "3.1.2"
end
end
1 change: 0 additions & 1 deletion radius-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit de3583b

Please sign in to comment.