sass-pire
Version:
Just a more mixins and functions with SCSS for more productive projects.
80 lines (44 loc) • 2.6 kB
Markdown
# **`functions/converters` directory documentation**
This folder contains the **converters** module, which includes functions for various unit conversions.
## **1. `_centimeter-to-inches.scss`**
This file provides a function to convert from `centimeter` to `inches` using the `cm-to-in` function.
## **2. `_centimeter-to-pixel.scss`**
This file provides a function to convert from `centimeter` to `pixel` using the `cm-to-px` function.
## **3. `_decimal-to-percentage.scss`**
This file provides a function to convert from `decimal` to `percentage` using the `dec-to-ptg` function.
## **4. `_inches-to-centimeter.scss`**
This file provides a function to convert from `inches` to `centimeter` using the `in-to-cm` function.
## **5. `_inches-to-px.scss`**
This file provides a function to convert from `inches` to `pixels` using the `in-to-px` function.
## **6. `_index.scss`**
This file serves as the entry point that forwards all other modules in the `functions/converters` directory. It ensures that all conversion functions in the `functions/converters` folder are accessible throughout the library.
**`Modules forwarded`:**
- **`_centimeter-to-inches.scss`**: Forwarded to convert centimeters to inches.
- **`_centimeter-to-pixel.scss`**: Forwarded to convert centimeters to pixels.
- **`_decimal-to-percentage.scss`**: Forwarded to convert decimal to percentage.
- **`_inches-to-centimeter.scss`**: Forwarded to convert inches to centimeters.
- **`_inches-to-px.scss`**: Forwarded to convert inches to pixels.
- **`_percentage-to-decimal.scss`**: Forwarded to convert percentage to decimal.
- **`_pixel-to-centimeter.scss`**: Forwarded to convert pixels to centimeters.
- **`_pixel-to-inches.scss`**: Forwarded to convert pixels to inches.
- **`_pixel-to-rem.scss`**: Forwarded to convert pixels to rem.
## **7. `_percentage-to-decimal.scss`**
This file provides a function to convert from `percentage` to `decimal` using the `ptg-to-dec` function.
## **8. `_pixel-to-centimeter.scss`**
This file provides a function to convert from `pixel` to `centimeter` using the `px-to-cem` function.
## **9. `_pixel-to-inches.scss`**
This file provides a function to convert from `pixel` to `inches` using the `px-to-in` function.
## **10. `_pixel-to-rem.scss`**
This file provides a function to convert from `pixel` to `rem` using the `px-to-rem` function.
For more details, see our sass-pire on [`GitHub`](https://github.com/Black-Axis/sass-pire).