Coder Social home page Coder Social logo

drop's Introduction

drop

๐Ÿ’ง Pure SCSS drop. Themeable.

How To Use

The minimal drop HTML markup looks like this:

<div class="drop drop--down"> <!-- 1 -->
 <!-- 2 -->
 <div class="drop__content"> <!-- 3 -->
   <!-- 4 -->
 </div>
</div>
  1. This element enables the drop functionality. There are other CSS classes that one can utilize:
  • drop--up => reverses the direction of drop
  • is-open => activates the drop programatically
  • -color-secondary => inverts the color scheme
  • -color-lighter => lightens the default color scheme
  1. Virtually any element, be it a block or an inline element, can be used in this place.

  2. Main content holder. There are more classes to use here:

  • -transition-fade-in => adds an animated transition
  • -transition-slide-in => adds an animated transition
  1. Virtually any element can go here but if you want a popover with a nice arrow you want to insert the following markup:
<div class="drop-arrow"></div>
<div class="drop-list -size-medium -position-left"> <!-- 5 -->
  <button class="drop-list__btn">Action 1</button>
  <button class="drop-list__btn">Action 2</button>
</div>
  1. There are some more CSS class options here:
  • -pull-left or -pull-right => pulls the content to the side a bit
  • -position-center or -position-right => changes the position of the content
  • -border-rounded => rounds the content holder borders

Preview

Dark

Dark Theme Preview

Light

Light Theme Preview

Example

<div class="drop -color-lighter drop--down">
  <button class="more">More</button>

  <div class="drop__content -transition-slide-in">
    <div class="drop-arrow"></div>

    <div class="drop-list -size-medium -position-right -border-rounded">
      <button class="drop-list__btn">Edit</button>
      <button class="drop-list__btn">Delete</button>
    </div>
  </div>
</div>

License

See the LICENSE

drop's People

Contributors

mareksuscak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.