Skip to content
Snippets Groups Projects
Commit 73eacd39 authored by Gsharm's avatar Gsharm
Browse files

fixed cs space issues, scrollup hover & active button style

parent 4b604106
No related branches found
No related tags found
No related merge requests found
Scroll Up
---------
Scroll up allows users to scroll page back to the top of the screen using a button.
Scroll up allows users to scroll page back to the top of the screen
using a button.
Scroll up uses Simple JQuery for smooth page scrolling.
......@@ -22,4 +23,5 @@ Configuration path: admin/config/system/scrollup
Author's Information:
---------------------
The drupal module Scroll Up is developed by Gajendra Sharma (drupalname: gajendra.sharma) at KNOWARTH Technologies.
\ No newline at end of file
The drupal module Scroll Up is developed by Gajendra Sharma
(drupalname: gajendra.sharma) at KNOWARTH Technologies.
......@@ -15,3 +15,12 @@
position: relative;
top: 31px;
}
a.scrollup {
border-bottom-style: none;
border-bottom: 0;
}
.scrollup:hover {
text-decoration: none;
}
......@@ -3,4 +3,3 @@ scrollup.admin:
description: 'Scrollup Configuration'
parent: system.admin_config_ui
route_name: scrollup.form
\ No newline at end of file
......@@ -42,6 +42,7 @@ function scrollup_install() {
* Implements hook_preprocess_page().
*/
function scrollup_preprocess_page(&$variables) {
$config = \Drupal::config('scrollup.settings');
$theme_selected = $config->get('scrollup_themename');
$active_theme = \Drupal::service('theme.manager')->getActiveTheme()->getName();
......@@ -55,4 +56,5 @@ function scrollup_preprocess_page(&$variables) {
$variables['#attached']['drupalSettings']['scrollup_speed'] = $config->get('scrollup_speed');
$variables['#attached']['drupalSettings']['scrollup_themename'] = $config->get('scrollup_themename');
}
}
......@@ -5,7 +5,7 @@ namespace Drupal\scrollup\Form;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
/*
/**
* Configure animated scroll to top settings for this site.
*/
class ScrollupForm extends ConfigFormBase {
......@@ -134,4 +134,5 @@ class ScrollupForm extends ConfigFormBase {
->save();
parent::submitForm($form, $form_state);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment