Commit graph

185 commits

Author SHA1 Message Date
bbe f5c102ea11 Add paper style for input[type=range]
(cherry picked from commit 28d49a3d0e)
2020-08-11 11:13:43 +02:00
Rhyne Vlaservich 4f7f6e8402 Fix linting in tabs 2020-08-01 16:13:50 -04:00
Marcus Pereira 08b297da60 update containers size 2020-08-01 15:59:19 -04:00
Marcus Pereira 7d3b1e04fd feat: create size to .container class 2020-08-01 15:59:19 -04:00
Phreshhh 231d2ab6d9 Feature Breadcrumb 2020-08-01 15:59:19 -04:00
Phreshhh e1cee11c38 Feature Breadcrumb 2020-08-01 15:59:19 -04:00
Phreshhh 2f4f9c2465 button fix for backward compatibility 2020-08-01 15:59:19 -04:00
Phreshhh ae79596cd0 burger borderfix 2020-08-01 15:59:19 -04:00
Phreshhh bda6b79f1f margin-top removed 2020-08-01 15:59:19 -04:00
Phreshhh c219346051 margin-top stylelint fix 2020-08-01 15:59:19 -04:00
Phreshhh 4c4c97af44 Navbar fix for FireFox 2020-08-01 15:59:19 -04:00
Phreshhh 74f38c54ee bg and shadow color changed to variable colors 2020-08-01 15:59:19 -04:00
Phreshhh 4f8f7a9297 Switch components - stylelint fix 8 :) - realy last XD 2020-08-01 15:59:19 -04:00
Phreshhh bfdc62055e Switch components - stylelint fix 7 :) - last 2020-08-01 15:59:19 -04:00
Phreshhh 866e8b3abd Switch components - stylelint fix 6 :) 2020-08-01 15:59:19 -04:00
Phreshhh 84d81adae5 Switch components - stylelint fix 5 :) I installed stylelint to my editor.. next time will less commits. 2020-08-01 15:59:19 -04:00
Phreshhh 0e198c9fcc Switch components - stylelint fix 4 :) OMG alphabetical.. - Why?! lol 2020-08-01 15:59:19 -04:00
Phreshhh 262db03fe0 Switch components - stylelint fix 3 :) 2020-08-01 15:59:19 -04:00
Phreshhh 06ce202265 Switch components - stylelint fix 2 :) 2020-08-01 15:59:19 -04:00
Phreshhh ea2635161d Switch components - stylelint fix 1 :) 2020-08-01 15:59:19 -04:00
Phreshhh cf2deae2ea Switch components 2020-08-01 15:59:19 -04:00
Phreshhh 53ffaa02f7 outline colormap removed 2020-08-01 15:59:19 -04:00
Phreshhh 800a5cd80f Outline buttons - stylelint fix 2020-08-01 15:59:19 -04:00
Phreshhh 1570e3ba33 Outline buttons 2020-08-01 15:59:19 -04:00
Rhyne 837c4321b9
Merge pull request #207 from Bajena/patch-1
Support multiple tab components
2020-08-01 15:32:53 -04:00
Jan Bajena 5ee5960e84
Support multiple tab components
Hi, first of all thank you for your cool framework. I really have fun working with it :)

I'm building an app for building flashcard sets in which I decided to use tabs component for switching between different languages. However I've noticed that current version assumes that there'll only be a single tab component on the page.

I overcame it in my project by changing `=` (attribute equals) selector to `$=` (attribute ends with) selector. 
This allows me to generate different tab IDs for different flashcards, like this:
```ruby
<% tab_name = "tabs_#{word.id}" %>
<% tab1_id = "#{tab_name}_tab1" %>
<% tab2_id = "#{tab_name}_tab2" %>

<div class="xs-12 sm-6 md-4 lg-3 col align-top flashcard-column">
  <div class="card">
    <div class="card-body">
      <div class="row tabs">
        <input id="<%= tab1_id %>" type="radio" name="<%= tab_name %>" checked>
        <label for="<%= tab1_id %>">Question</label>

        <input id="<%= tab2_id %>" type="radio" name="<%= tab_name %>">
        <label for="<%= tab2_id %>">Answer</label>

        <div id="<%= tab_name %>_content1" class="content">
          <h4 class="card-title flashcard-title"><%= word.question %></h4>
          <% if word.question_example %>
            <p class="card-text flashcard-example"><%= word.question_example %></p>
          <% end %>
        </div>
        <div id="<%= tab_name %>_content2" class="content">
          <h4 class="card-title flashcard-title"><%= word.answer %></h4>
          <% if word.answer_example %>
            <p class="card-text flashcard-example"><%= word.answer_example %></p>
          <% end %>
        </div>
      </div>
    </div>
  </div>
</div>
```

Here's a video to present how it works after the change:
https://www.loom.com/share/6de1e443314f44f49c7b91e9b5875c93

Hope someone finds it useful
2020-07-30 21:43:39 +02:00
Kevin Koester fc4ede380a
Fixes #202
Fixes Bug where the content would be aligned right next to the tabs on larger screens.

See: https://github.com/papercss/papercss/issues/202
2020-07-10 11:44:26 +02:00
rhyneav 02b5d372bc Merge branch 'develop' into release-1.6.1 2019-01-25 07:11:48 -05:00
Rhyne 6695244c30
Merge pull request #177 from sarramegnag/fix-anchor-transition
Fix hover transition on .paper-btn anchors
2019-01-25 07:08:02 -05:00
Guillaume Sarramegna a0c77badbd Fix hover transition on .paper-btn anchors 2018-12-28 01:08:19 +01:00
Guillaume Sarramegna 8af69f367c Fix percentage calculation in progress bar for loop 2018-12-27 23:35:42 +01:00
vanillaSlice 0d51e714b6 Keyboard control on radio buttons bug fix 2018-11-17 17:46:37 +00:00
mert.safak 67d1208570 set select elements' height to 2.35rem to prevent inconsistent behaviour on Firefox 2018-10-31 22:44:21 +03:00
vanillaSlice 0d1dc47df4 Removed unnecessary properties 2018-10-21 17:27:14 -04:00
vanillaSlice 0b52edfa3c Extract btn-close-color mixin 2018-10-21 17:27:14 -04:00
vanillaSlice 43dd0f9567 Removed prefixes 2018-10-21 17:27:14 -04:00
vanillaSlice 8ba8c911f4 Remove redundant translate mixin 2018-10-21 17:27:14 -04:00
vanillaSlice 9b5ba36809 Use gulp autoprefixer instead of manually adding prefixes 2018-10-21 17:26:15 -04:00
vanillaSlice 7e3d3e6a85 Fade out on dismiss 2018-10-21 17:23:12 -04:00
vanillaSlice 468e571c9a Created dismissible alerts 2018-10-21 17:23:12 -04:00
Jeremy Pyne 753aa15dd6 Update _lists.scss 2018-10-21 17:23:12 -04:00
Jeremy Pyne cb14b1019c Update _lists.scss
Also intent issue using popover in a list.
2018-10-21 17:23:12 -04:00
Jeremy Pyne 9a16f4068c Update _lists.scss
Fix for badges in unordered lists.
2018-10-21 17:23:12 -04:00
vanillaSlice f5ee9a4d01 Made suggested changes 2018-10-08 20:03:24 +01:00
vanillaSlice 0e52dfc44d Shorten class names 2018-10-07 13:45:00 +01:00
vanillaSlice f5c6bd7a39 Polishing 2018-10-06 21:37:41 +01:00
vanillaSlice bbd8aadf75 Removed vendor prefixes 2018-10-06 19:01:14 +01:00
vanillaSlice 71125aa0d2 Created progress bar 2018-09-29 16:16:22 +01:00
Yazed Jamal 408ac0f68e Fixed: Radio and check box not working in Firefox 2018-08-30 00:06:32 +01:00
rhyneav 764c6271fd fix mobile menu showing at 768px 2018-06-22 09:33:29 -04:00