Skip to content

Commit

Permalink
Improved card + card readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Lcfvs committed Jul 13, 2018
1 parent f8fab95 commit 54890f3
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 20 deletions.
2 changes: 1 addition & 1 deletion components/header/popdown/popdown.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {"name":"css-ui","version":"2.4.1","author":"Lcf.vs <[email protected]>","license":"MIT"} */
/* {"name":"css-ui","version":"2.4.2","author":"Lcf.vs <[email protected]>","license":"MIT"} */
body > header > ol {
float: right;
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion components/header/popdown/popdown.min.css

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

2 changes: 1 addition & 1 deletion components/header/popdown/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## CDN

```html
<link href="https://cdn.rawgit.com/Lcfvs/css-ui/2.4.1/css-ui/components/header/popdown/popdown.min.css" media="screen" rel="stylesheet" />
<link href="https://cdn.rawgit.com/Lcfvs/css-ui/2.4.2/css-ui/components/header/popdown/popdown.min.css" media="screen" rel="stylesheet" />
```

## Usage
Expand Down
6 changes: 2 additions & 4 deletions components/main/card/card.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {"name":"css-ui","version":"2.4.1","author":"Lcf.vs <[email protected]>","license":"MIT"} */
/* {"name":"css-ui","version":"2.4.0","author":"Lcf.vs <[email protected]>","license":"MIT"} */
a > figure:first-child:last-child {
display: inline-block;
position: relative;
Expand All @@ -10,9 +10,7 @@ a > figure:first-child:last-child {
a > figure:first-child:last-child img {
max-width: 100%;
min-width: 100%;
max-height: 100%;
min-height: 100%;
display: block;
display: inline-block;
}

a > figure:first-child:last-child figcaption {
Expand Down
4 changes: 2 additions & 2 deletions components/main/card/card.min.css

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

15 changes: 14 additions & 1 deletion components/main/card/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## CDN

```html
<link href="https://cdn.rawgit.com/Lcfvs/css-ui/2.4.1/css-ui/components/main/card/card.min.css" media="screen" rel="stylesheet" />
<link href="https://cdn.rawgit.com/Lcfvs/css-ui/2.4.2/css-ui/components/main/card/card.min.css" media="screen" rel="stylesheet" />
```

## Usage
Expand All @@ -15,4 +15,17 @@
<figcaption>Image legend</figcaption>
</figure>
</a>
```

## Custom style

```css
a > figure:first-child:last-child {
height: 20em;
width: 20em;
}

a > figure:first-child:last-child img {
max-height: 17em; /* based on your max fig caption height */
}
```
2 changes: 1 addition & 1 deletion components/menu/expanded/expanded.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {"name":"css-ui","version":"2.4.1","author":"Lcf.vs <[email protected]>","license":"MIT"} */
/* {"name":"css-ui","version":"2.4.2","author":"Lcf.vs <[email protected]>","license":"MIT"} */
@media only screen and (min-width: 50em) {
body {
width: calc(100vw - 15em);
Expand Down
2 changes: 1 addition & 1 deletion components/menu/expanded/expanded.min.css

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

2 changes: 1 addition & 1 deletion components/menu/expanded/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## CDN

```html
<link href="https://cdn.rawgit.com/Lcfvs/css-ui/2.4.1/css-ui/components/menu/expanded/expanded.min.css" media="screen" rel="stylesheet" />
<link href="https://cdn.rawgit.com/Lcfvs/css-ui/2.4.2/css-ui/components/menu/expanded/expanded.min.css" media="screen" rel="stylesheet" />
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion components/menu/mini/mini.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {"name":"css-ui","version":"2.4.1","author":"Lcf.vs <[email protected]>","license":"MIT"} */
/* {"name":"css-ui","version":"2.4.2","author":"Lcf.vs <[email protected]>","license":"MIT"} */
@media only screen and (min-width: 50em) {
body {
width: calc(100vw - 3em);
Expand Down
2 changes: 1 addition & 1 deletion components/menu/mini/mini.min.css

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

2 changes: 1 addition & 1 deletion components/menu/mini/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## CDN

```html
<link href="https://cdn.rawgit.com/Lcfvs/css-ui/2.4.1/css-ui/components/menu/mini/mini.min.css" media="screen" rel="stylesheet" />
<link href="https://cdn.rawgit.com/Lcfvs/css-ui/2.4.2/css-ui/components/menu/mini/mini.min.css" media="screen" rel="stylesheet" />
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion css-ui.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* {"name":"css-ui","version":"2.4.1","author":"Lcf.vs <[email protected]>","license":"MIT"} */
/* {"name":"css-ui","version":"2.4.2","author":"Lcf.vs <[email protected]>","license":"MIT"} */
:after, :before, a, abbr, acronym, address, article, aside, audio, b, big, blockquote, body, button, canvas, caption, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hr, html, i, iframe, img, ins, kbd, label, legend, li, main, mark, menu, nav, object, ol, output, p, pre, progress, q, rt, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, u, ul, var, video {
font: inherit;
vertical-align: baseline;
Expand Down
2 changes: 1 addition & 1 deletion css-ui.min.css

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lcf.vs/css-ui",
"version": "2.4.1",
"version": "2.4.2",
"description": "A pure CSS base to make a responsive user interface",
"main": "css-ui.min.css",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ A pure CSS base to make a responsive user interface.

### Using a CDN
```html
<link href="https://cdn.rawgit.com/Lcfvs/css-ui/2.4.1/css-ui.min.css" media="screen" rel="stylesheet" />
<link href="https://cdn.rawgit.com/Lcfvs/css-ui/2.4.2/css-ui.min.css" media="screen" rel="stylesheet" />
```

```html
Expand Down

0 comments on commit 54890f3

Please sign in to comment.