Skip to content

Commit

Permalink
Remove redundant CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
tiaanduplessis committed Sep 29, 2016
1 parent 3d443ed commit 9834792
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![npm version](https://badge.fury.io/js/wenk.svg)](https://badge.fury.io/js/wenk)
[![Bower version](https://badge.fury.io/bo/wenk.svg)](https://badge.fury.io/bo/wenk)

**Wenk** is a Lightweight tooltip written in pure CSS using [PostCSS](http://postcss.org/). The **minified version is just 683 bytes when gzipped** :scream:.
**Wenk** is a Lightweight tooltip written in pure CSS using [PostCSS](http://postcss.org/). The **minified version is just 712 bytes when gzipped** :scream:.

<p align="center">
<a href="#"><img width="80%" src="media/wenk.gif" alt="wenk"></a>
Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<section class="col-lg-12">
<h1>Wenk 😉</h1>
<p>
Wenk is a Lightweight tooltip written in pure CSS using <a href="https://github.com/postcss/postcss">PostCSS</a>. The <strong>minified version is just 727 bytes when gzipped</strong>.
Wenk is a Lightweight tooltip written in pure CSS using <a href="https://github.com/postcss/postcss">PostCSS</a>. The <strong>minified version is just 712 bytes when gzipped</strong>.
It can easily be styled using <code>data-*</code> attributes or classes. By default the tooltip will adjust to fit the content.
</p>
</section>
Expand Down
2 changes: 1 addition & 1 deletion demo/wenk.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions dist/wenk.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
[data-wenk] {
position: relative

/* ===[Tooltip Down]=== */

/* ===[Tooltip Left]=== */
Expand All @@ -20,8 +20,6 @@
}
[data-wenk]:after {
position: absolute;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
display: none;
font-size: 13px;
border-radius: .4rem;
Expand All @@ -31,7 +29,6 @@
background-color: rgba(17, 17, 17, .8);
box-shadow: 0 0 14px rgba(0, 0, 0, 0.1);
color: #fff;
width: 200px;
line-height: 20px;
line-height: 1.25rem;
text-align: left;
Expand Down
2 changes: 1 addition & 1 deletion dist/wenk.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/wenk.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
position: relative;
&:after {
position: absolute;
transform: translateX(-50%);
display: none;
font-size: var(--font-size);
border-radius: .4rem;
Expand All @@ -17,7 +16,6 @@
background-color: var(--bg-color);
box-shadow: 0 0 14px rgba(0, 0, 0, 0.1);
color: var(--font-color);
width: 200px;
line-height: 1.25rem;
text-align: left;
z-index: 1;
Expand All @@ -44,7 +42,7 @@
transform: translate(-50%, -10px);
}
}

/* ===[Tooltip Down]=== */
&.wenk--bottom, &[data-wenk-pos="bottom"] {
&:after {
Expand Down

0 comments on commit 9834792

Please sign in to comment.