npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@amocrm/styles

v0.0.27

Published

Библиотека стилей

Downloads

47

Readme

Библиотека стилей amoCRM

Latest release NPM Version Generic badge license

Написана на основе SASS(1.56.0+).

Основано на:

Быстрый старт

1. Установите зависимость

# npm
npm install @amocrm/styles --save

# yarn
yarn add @amocrm/styles

2. Соберите стили

# Стили будут собраны в папку <cwd>/src/styles в SASS и CSS форматах
amocrm-styles-generate --output=./src/styles

# Сборка с префиксом "amgate"
amocrm-styles-generate --output=./src/styles --prefix=amgate

3. Используйте стили

// импорт всех стилей (CSS)
@import './src/styles/css/amocrm.min.css';

// импорт всех стилей (SASS)
@import './src/styles/sass';

// импорт отдельно элемента button
@import './src/styles/sass/button';

Документация

1. Кнопки

amoCRM включает в себя 5 предопределенных стилей кнопок

Снимок_экрана_2022-11-10_в_3.11.30

<button class="amo-btn-primary">Primary</button>
<button class="amo-btn-secondary">Secondary</button>
<button class="amo-btn-dark">Dark</button>
<button class="amo-btn-light">Light</button>
<button class="amo-btn-link">Link</button>

1.1. Контурные кнопки (без фона)


Нужна кнопка, но без «тяжелых» фоновых цветов? Замените дефолтные классы-модификаторы на классы .amo-btn-outline-* для удаления всех фоновых цветов в любой кнопке.

Снимок_экрана_2022-11-10_в_3.12.43

<button class="amo-btn-outline-primary">Primary</button>
<button class="amo-btn-outline-dark">Dark</button>

1.2. Размеры EXT


Хотите кнопки большего или меньшего размера? Добавьте .amo-btn-lg или .amo-btn-sm.

Снимок_экрана_2022-11-10_в_3.18.31

<button class="amo-btn-primary amo-btn-lg">Large button</button>
<button class="amo-btn-primary amo-btn-sm">Small button</button>

1.3. Отключенное состояние


Чтобы кнопки выглядели неактивными, добавьте логический атрибут disabled к любому элементу <button>. Отключенные кнопки имеют значение pointer-events: none; что предотвращает срабатывание состояний наведения и активного состояния.

Снимок_экрана_2022-11-10_в_3.37.10

<button class="amo-btn-primary" disabled>Primary</button>
<button class="amo-btn-secondary" disabled>Secondary</button>
<button class="amo-btn-dark" disabled>Dark</button>
<button class="amo-btn-light" disabled>Light</button>

1.4. Группы кнопок


Сгруппируйте несколько кнопок в одну строку используя .amo-btn-group.

Снимок_экрана_2022-11-10_в_5.36.34

<div class="amo-btn-group">
  <button type="button" class="amo-btn-primary">Left</button>
  <button type="button" class="amo-btn-primary">Middle</button>
  <button type="button" class="amo-btn-primary">Right</button>
</div>

Copyright and license

Распространяется под лицензией MIT License. Документация под лицензией Creative Commons.