New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

arctic_admin

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arctic_admin

Responsive Theme for ActiveAdmin

3.2.0
Source
npm
Version published
Weekly downloads
5.1K
-9.33%
Maintainers
1
Weekly downloads
 
Created
Source

ArcticAdmin

Gem Version Gem Downloads

Simple theme for ActiveAdmin :ok_hand:

Complete demo here : https://arctic-admin.herokuapp.com/

admin user : admin@example.com / password

Screenshot

Installation

  • Add this to your Gemfile:
gem 'arctic_admin'
  • Run bundle install.

  • Add this line to the file config/initializers/active_admin.rb

meta_tags_options = { viewport: 'width=device-width, initial-scale=1' }
config.meta_tags = meta_tags_options
config.meta_tags_for_logged_out_pages = meta_tags_options

Usage

CSS

In your active_admin.css, include the css file:

/*
 *= require arctic_admin/base
 */

Remove the line *= require active_admin/base

Then restart your webserver if it was previously running.

Sass Support

:exclamation: Remove the line @import "active_admin/base"

If you prefer SCSS, add this to your active_admin.scss file:

@import "arctic_admin/base";

If you use the Sass indented syntax, add this to your active_admin.sass file:

@import arctic_admin/base

JS

In your active_admin.js, include the js file:

//= require arctic_admin/base

:exclamation: Remove the line //= require active_admin/base

Use with webpacker

CSS

In your app/javascript/stylesheets/active_admin.scss, add the line:

@import '~arctic_admin/src/scss/main';

Remove:

@import "~@activeadmin/activeadmin/src/scss/mixins";
@import "~@activeadmin/activeadmin/src/scss/base";

JS

In your app/javascript/packs/active_admin.js, add the line:

import 'arctic_admin'

Customization

For this, you need to use sass to custom the theme.

You can even change basic color of the theme by placing some other variables:

If you use the SCSS, add this to your active_admin.scss file:

$primary-color: #2dbb43;

@import "arctic_admin/base";

If you use the Sass indented syntax, add this to your active_admin.sass file:

$primary-color: #2dbb43

@import arctic_admin/base

Then restart your webserver if it was previously running.

Contributing

  • Fork it ( https://github.com/cprodhomme/arctic_admin/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

Keywords

activeadmin

FAQs

Package last updated on 02 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts