Sass Variables Documentation

Sass Variables Documentation

Source: variables/_variables-wdpk.scss, line 1144

6.1 Bottom Bar Variables

Variables impacting the Bottom Bar

Variable Options
$wdpk-bottom-bar-enabled Whether Bottom bar is enabled or not
$wdpk-bottom-height Height for the bottom bar
$wdpk-bottom-bar-background Background properties for the bottom bar
$wdpk-bottom-bar-menu-shadow Shadow properties for the bottom bar
$wdpk-bottom-bar-menu-border-map Bottom bar border properties

Source: variables/_variables-wdpk.scss, line 392

6.2 Buttons Variables

For each of buttons, define text, background, and border color.

Variable Options
$wdpk-btn-padding-y Y-axis padding for buttons
$wdpk-btn-padding-x X-axis padding for buttons
$wdpk-btn-font-family FOnt fmaily for buttons
$wdpk-btn-font-size Font size for buttons
$wdpk-btn-line-height Line height for buttons
$wdpk-btn-padding-y-sm Y-axis padding for sm buttons
$wdpk-btn-padding-x-sm x-axis padding for sm buttons
$wdpk-btn-font-size-sm Font Size for sm buttons
$wdpk-btn-line-height-sm Line Height for sm buttons
$wdpk-btn-padding-y-lg Y-axis padding for lg buttons
$wdpk-btn-padding-x-lg X-axis padding for lg buttons
$wdpk-btn-font-size-lg Font size for lg buttons
$wdpk-btn-line-height-lg Line height for lg buttons
$wdpk-btn-border-width Border width for buttons
$wdpk-btn-font-weight Font weight for buttons
$wdpk-btn-box-shadow Box shadow for buttons
$wdpk-btn-focus-width Focus border width for buttons
$wdpk-btn-focus-box-shadow Box shadow for buttons
$wdpk-btn-disabled-opacity Disbaled opacity for buttons
$wdpk-btn-active-box-shadow Active state shadow properties for buttons
$wdpk-btn-link-disabled-color Link Disabled color for buttons
$wdpk-btn-block-spacing-y Y-axis spacing for block buttons
$wdpk-btn-border-radius Border radius for buttons
$wdpk-btn-border-radius-lg Bordeer radius for lg buttons
$wdpk-btn-border-radius-sm Border radius for sm buttons
$wdpk-btn-transition Transition properties for buttons
$wdpk-btn-shadow Shodow properties for buttons

Source: variables/_variables-wdpk.scss, line 201

6.3 Components

Define common padding and border radius sizes etc for various components. All the components use values from these variables to calculate the values.

Variable Options
$wdpk-line-height-lg 'lg' Line height for text used in components such as buttons
$wdpk-line-height-sm 'sm' Line height for text used in components such as buttons
$wdpk-border-width Border width used in components
$wdpk-border-color Border color used in components
$wdpk-border-radius Border radius used in components
$wdpk-border-radius-lg 'lg' Border radius used in components
$wdpk-border-radius-sm 'sm' Border radius used in components
$wdpk-box-shadow-sm 'sm' Box Shadow used in components
$wdpk-box-shadow Box Shadow used in components
$wdpk-box-shadow-lg 'lg' Box Shadow used in components
$wdpk-component-active-color Active color used for components
$wdpk-component-active-bg Active background color used for components
$wdpk-caret-width Caret width used for components
$wdpk-transition-base base transition properties for components
$wdpk-transition-fade fade transition properties for components
$wdpk-transition-collapse collapse transition properties for components

Source: variables/_variables-wdpk.scss, line 761

6.4 Dropdown Menu Variables

Variables impacting the dropdown menu

Variable Options
$wdpk-dropdown-menu-width Width of the dropdown menu
$wdpk-dropdown-menu-background-color Background color for dropdown menu
$wdpk-dropdown-menu-item-top-bottom-padding Top and bottom padding for items in the dropdown menu
$wdpk-dropdown-menu-item-left-right-padding Left and right padding for menu items
$wdpk-dropdown-menu-text-align Text align for dropdown menu items 'left' 'right' 'center'
$wdpk-dropdown-menu-item-separators Map for mixin to enable separators
$wdpk-dropdown-menu-shadow-map Map for shadow to be applied on the dropdown menu
$wdpk-dropdown-menu-animation Map for assigning animation to teh dropdown menu
$wdpk-dropdown-menu-font-color The color of the font for the dropdown menu
$wdpk-dropdown-menu-font-hover-color Hover color for the font in the dropdown menu
$wdpk-dropdown-menu-font-animate Set true if you need the dropdown items to animate on hover else set it to false
$wdpk-dropdown-menu-background-hover-color Background color on hover for items in dropdown
$wdpk-dropdown-menu-border-map Map to input various parameters of assigning a border to the dropdown menu

Source: variables/_variables-wdpk.scss, line 250

6.5 Font Variables

Variables for font sizes use throught the theme. We use rem values for the fonts. By Overriding these variables various fonr sizes can be set through the theme. Can directly use rem, px, em values in these variables.

Variable Options
$wdpk-font-size-base default font size applied to <body> rem value only
$wdpk-font-family-sans-serif The default Sans Serif font family
$wdpk-font-family-secondary Secondary font family used in various components
$wdpk-font-weight-light Font weight for light font
$wdpk-font-weight-normal Font weight for regular font
$wdpk-font-weight-bold Font weight for bold font
$wdpk-line-height-base Base line height for all fonts
$wdpk-h1-font-size default font size applied to <h1> rem value only
$wdpk-h2-font-size default font size applied to <h2> rem value only
$wdpk-h3-font-size default font size applied to <h3> rem value only
$wdpk-h4-font-size default font size applied to <h4> rem value only
$wdpk-h5-font-size default font size applied to <h5> rem value only
$wdpk-h6-font-size default font size applied to <h6> rem value only
$wdpk-headings-margin-bottom Bottom margin given to each heading rem values
$wdpk-headings-font-family Font family assigned to headings
$wdpk-headings-font-weight Font Weight assigned to headings
$wdpk-headings-line-height Line height assigned to headings
$wdpk-headings-color Color assigned to headings
$wdpk-display1-size: display1 Font Size
$wdpk-display2-size: display2 Font Size
$wdpk-display3-size: display3 Font Size
$wdpk-display4-size: display4 Font Size
$wdpk-display1-weight: display1 Font Weight
$wdpk-display2-weight: display2 Font Weight
$wdpk-display3-weight: display3 Font Weight
$wdpk-display4-weight: display4 Font Weight
$wdpk-paragraph-margin-bottom Margin below the

tag

$wdpk-link-color Assign a color for links
$wdpk-link-decoration Default link decoration
$wdpk-link-hover-color Link Hover Color
$wdpk-link-hover-decoration Link Hover Decoration

Source: variables/_variables-wdpk.scss, line 473

6.6 Form Variables

Variables used for modifying the look of the form input fields in forms.

Variable Options
$wdpk-label-font-size Form label font size
$wdpk-label-line-height Form label line height
$wdpk-label-font-weight Form label font weight
$wdpk-label-font-color Form label font color
$wdpk-input-checkbox-size Form Checbox input size
$wdpk-form-group-margin-bottom Form group bottom margin
$wdpk-input-bg Input field backgrodun color by default
$wdpk-input-disabled-bg Input field background color in disabled state
$wdpk-input-color Input field font color
$wdpk-input-border-color Input field border color
$wdpk-input-border-width Input field border width
$wdpk-input-box-shadow Input field box shadow
$wdpk-input-border-radius Input field border radius
$wdpk-input-border-radius-lg Input field border radies of lg
$wdpk-input-border-radius-sm Input field border radius for sm
$wdpk-input-focus-bg Input field focus background color
$wdpk-input-focus-border-color Input field focus border color
$wdpk-input-focus-color Input field focus font color
$wdpk-input-focus-width Input field focus border width
$wdpk-input-focus-box-shadow Input field focus box shadow
$wdpk-input-placeholder-color Input field placeholder font color
$wdpk-input-plaintext-color Input field plaintext color
$wdpk-input-transition Input field placeholder transition properties
$wdpk-label-margin-bottom Input field placeholder bottom margin
$wdpk-input-padding-y Y-axis padding for input fields
$wdpk-input-padding-x X-axis padding for input fields
$wdpk-input-font-family Input field font family
$wdpk-input-font-size Input field font size
$wdpk-input-font-weight Input field font weight
$wdpk-input-line-height Input field line height
$wdpk-input-padding-y-sm Y-axis padding for sm input fields
$wdpk-input-padding-x-sm X-axis padding for sm input fields
$wdpk-input-font-size-sm Font size for sm input fields
$wdpk-input-line-height-sm Line height for sm input fields
$wdpk-input-padding-y-lg Y-axis padding for lg input fields
$wdpk-input-padding-x-lg X-axis padding for lg input fields
$wdpk-input-font-size-lg Font size for lg input fields
$wdpk-input-line-height-lg Line height for lg input fields

Source: variables/_variables-wdpk.scss, line 14

6.7 General Layout And Styling Options

Variable Options
$wdpk-orientation 'ltr' for Left To Right Text And 'rtl' For Right To Left Text
$wdpk-sm-breakpoint Break for Breakpoint Slicer for Small Devices
$wdpk-md-breakpoint Break for Breakpoint Slicer for Medium Device
$wdpk-lg-breakpoint Break for Breakpoint Slicer for For Desktop Resolutions
$wdpk-xl-breakpoint Break for Breakpoint Slicer for Xtra Large Screens
$wdpk-enable-on-desktop Set this to true if offCanvas menu needs to be wna
$wdpk-mobile-header-breakpoint '1' for xs, '2' for sm, '3' for md, '4' for lg set ot 5 to display on desktop only if $wdpk-enable-on-desktop is set to true else sass compiler will throw an error
$wdpk-code-block-style: light Select the style of the code block light or dark
$wdpk-global-transition-duration Transition duration set for theme animations
$wdpk-global-transition-function Transition function used for animations for the theme
$wdpk-global-element-margin Bottom margin used Globally for shortcodes
$wdpk-lightness-value Lightness value used Globally throughout the theme. Needs to be negativ in case of a light theme and positive in case of a dark theme

Source: variables/_variables-wdpk.scss, line 575

6.8 Navigation Variables

Variables impacting the Header Navigation for the theme.

Variable Options
$wdpk-menu-height Sets the height of the header default 60px
$wdpk-menu-logo-width Sets the width of the header default 200px flex-start flex-end center
$wdpk-menu-logo-align Set the alignment for the logo in the header
$wdpk-menu-align-items Align menu items flex-start flex-end center
$wdpk-padding-menu-items Sets the padding between the primary menu items
$wdpk-menu-background Map for mixin setting the background for Primary Menu
$wdpk-primary-menu-shadow Map for mixin to create a shadow for Primary Menu
$wdpk-primary-menu-border-map Map for mixin to assign a Border to Primary Menu
$wdpk-menu-extras-font-size Font size for extras in primary menu
$wdpk-menu-extras-font-color Font color for extras in primary menu
$wdpk-menu-extras-font-hover-color Font hover color for extras in primary menu
$wdpk-menu-font-size Font size for parent menu items
$wdpk-menu-font-color Font color of the menu items
$wdpk-menu-font-family Font family for menu items default Arial, Helvetica, sans-serif
$wdpk-menu-font-weight Font weight for the menu items
$wdpk-menu-text-transform Text Tranform for menu items 'uppercase' 'lowercase' 'capitalize' 'none'
$wdpk-menu-font-line-height Default line height for menu items
$wdpk-menu-items-side-border Whether to enable the border for primary menu items 'true' 'false'
$wdpk-menu-display-caret Display caret for the dropdown menu 'true' 'false'
$wdpk-menu-extras-display-search Enables the search icon on the primiary menu 'true' 'false'
wdpk-menu-extras-border Enables the border for extras items in the primary menu bar
$wdpk-menu-extras-border-width Border width for the extras section of the primary menu bar
$wdpk-menu-extras-boder-color Border color for the extras section of the primary menu
$wdpk-hover-effect Map for the mixin to add hover effects to the primary items in menu
$wdpk-cart-number-font-color Font Color for the Cart Number
$wdpk-menu-extras-font-size Header extras font size
$wdpk-menu-extras-font-color Header extras font color
$wdpk-menu-extras-font-hover-color Header extras font hover color
$wdpk-menu-split-menu Set to true if the split menu is enabled else set to false

Source: variables/_variables-wdpk.scss, line 1231

6.9 Off Canvas | Mobile Header Variables

Variables impacting the Off Canvas | Mobile Header

Variable Options
$wdpk-off-canvas-open-from Which side the menu should open from left or right
$wdpk-off-canvas-width The width of the OffCanvas Menu
$wdpk-off-canvas-section-margin The vertical margin between the sections of the OffCanvas Menu
$wdpk-off-canvas-logo-align The alignment of the logo values that can be used are flex-start, center and flex-end`
$wdpk-off-canvas-menu-align The alignment of the menu values that can be used are flex-start, center and flex-end`
$wdpk-off-canvas-menu-text-align Alignment of the text for the menu values that can be used are left, right and center
$wdpk-off-canvas-font-color The color of the font for the OffCanvas Menu
$wdpk-off-canvas-font-hover-color The hover color for the font
$wdpk-off-canvas-font-size The size of the font
$wdpk-off-canvas-background-color Background color for the OffCanvas menu
$wdpk-off-canvas-separator Use either true or false to enable of disable the separators for the OffCanvas Menu
$wdpk-off-canvas-separator-color The color of the separators between the menu items
$wdpk-off-canvas-separator-weight The thickness of the separators between menu items
$wdpk-off-canvas-top-bottom-padding The vertical padding for the menu items
$wdpk-off-canvas-display-extras Set to true if the extras items need to be displayed
$wdpk-off-canvas-extras-padding Padding between the extras items
$wdpk-enable-on-desktop Set to true if you need the OffCanvas menu to be displayed on the Desktop as well
$wdpk-off-canvas-display-social Set this to true if the social icons need to be displayed on the OffCanvas Menu
$wdpk-off-canvas-social-shape The shape of the social icons, possible values round, circle and square
$wdpk-off-canvas-social-padding Padding around the social icons
$wdpk-off-canvas-social-margin Margin between social icons in OffCanavas menu
$wdpk-off-canvas-social-size The size of the social icons
$wdpk-off-canvas-social-shadow Set this to true if shadows are needed on hover else it can be set to false
$wdpk-off-canvas-shadow The shodow map for the offcanvas menu
$wdpk-mobile-header-logo-width The width of the logo for the mobilee header
$wdpk-mobile-header-vertical-padding Vertical padding for mobile header
$wdpk-mobile-header-background Mobile header background map
$wdpk-mobile-header-shadow Mobile header shadow map

Source: variables/_variables-wdpk.scss, line 1397

6.10 Page Transitions

Variables impacting the behaviour of animated page transitions

Variable Options
$wdpk-page-trans-enabled true if you want the page transitions to work false if you want to disable the page transitions
$wdpk-page-trans-bg-color Background color map for animated page transistions
$wdpk-page-trans-spinner-type Option of .spinner-grow and .spinner-border . Ensure the classes are passed as it iss else Sass compiler will throw an error
$wdpk-page-trans-spinner-color Page transitions spinner color

Source: variables/_variables-wdpk.scss, line 1367

6.11 Sidebar Variables

Variables impacting the Sidebar

Variable Options
$wdpk-sidebar-type 1 - Clean, 2 - Sectioned, 3 - Outlined
$wdpk-sidebar-padding The inner padding that is applied to the sidebar
$wdpk-margin-sections The margin between the sidebar section
$wdpk-sidebar-background-color Background color for sidebar
$wdpk-side-border Set to true to enable tyhe divider else set to false
$wdpk-side-border-color The color of the sidebar border
$wdpk-sidebar-shadow Shadow map for Sidebars

Source: variables/_variables-wdpk.scss, line 885

6.12 Sticky Navbar Variables

Variables impacting the Sticky Navbar Theme

Variable Options
$wdpk-sticky-menu-font-color The font color for Sticky Navbar
$wdpk-sticky-menu-font-color-hover Hover font color for Sticky Navbar
$wdpk-sticky-menu-height Height of the Sticky Navbar
$wdpk-sticky-menu-logo-width Width of the logo for sticky Navbar
$wdpk-sticky-menu-background Sticky Navbar background Map
$wdpk-sticky-menu-shadow Shadow properties for Sticky Navbar
$wdpk-sticky-menu-font-size The size of the font for the Sticky Navbar
$wdpk-sticky-menu-font-family Font fmaily for Sticky Navbar

Source: variables/_variables-wdpk.scss, line 1051

6.13 Top Bar Variables

Variables impacting the Top Bar

Variable Options
$wdpk-topbar-item-padding left and right padding for the elements in the topbar
$wdpk-topbar-font-color Font color
$wdpk-topbar-font-color-hover Mouse over font color
$wdpk-topbar-height Total height Of The Topbar
$wdpk-topbar-hover-transition-duration Transition Duration On Mouseover
$wdpk-topbar-font-size Font size for Topbar
$wdpk-topbar-font-family Font family for Topbar
$wdpk-topbar-font-weight Font weight for the Topbar
$wdpk-topbar-text-transform Text Tranform properties for menu items 'uppercase' 'lowercase' 'capitalize' 'none'
$wdpk-topbar-font-line-height Default line height for Topbar
$wdpk-topbar-background All settings for the topbar background
$wdpk-topbar-border-map Map for styling the borders of the topbar

Source: variables/_variables-wdpk.scss, line 983

6.14 Transparent Navbar Variables

Variables impacting the Transparent Navbar Theme

Variable Options
$wdpk-transparent-menu-font-color The font color for Sticky Navbar
$wdpk-transparent-menu-font-color-hover Hover font color for Sticky Navbar
$wdpk-transparent-menu-height Height of the Sticky Navbar
$wdpk-transparent-menu-logo-width Width of the logo for sticky Navbar
$wdpk-transparent-menu-background Sticky Navbar background Map
$wdpk-transparent-menu-shadow Shadow properties for Sticky Navbar
$wdpk-transparent-menu-font-size The size of the font for the Sticky Navbar
$wdpk-transparent-menu-font-family Font fmaily for Sticky Navbar