Skip to content

Commit

Permalink
Convert the other css package pages to use common.css
Browse files Browse the repository at this point in the history
  • Loading branch information
roblevintennis committed Oct 4, 2020
1 parent 317ab7c commit 645668e
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 76 deletions.
23 changes: 1 addition & 22 deletions agnosticui-css/button.html
Expand Up @@ -5,33 +5,12 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Button</title>

<link rel="stylesheet" href="./button.css">
<link rel="stylesheet" href="./button-group.css">
<link rel="stylesheet" href="./progress.css">
<link rel="stylesheet" href="./common.css">
<style>
/* these styles are purely demonstration related styles only */
body {
width: 450px;
margin: 40px auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Ubuntu", "Fira Sans", Helvetica, "Droid Sans", "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

h3 {
font-weight: 300;
text-align: center;
}

div {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-bottom: 40px;
}

.row {
flex-direction: row;
}

.row .btn {
Expand Down
42 changes: 7 additions & 35 deletions agnosticui-css/card.html
Expand Up @@ -4,9 +4,7 @@

<head>
<title>Card</title>
<link rel="stylesheet" href="./card.css">
<link rel="stylesheet" href="./button.css">
<link rel="stylesheet" href="./button-group.css">
<link rel="stylesheet" href="./common.css">
<style>
/* Body Layout (just demo stuff really) */
* {
Expand All @@ -15,41 +13,15 @@

body {
--primary: #E05D26;
--grey: #454545;
--lightgrey: #666;

color: var(--grey);
line-height: 1.55;
display: flex;
justify-content: center;
flex-wrap: wrap;
font-family: "Roboto", Helvetica, Arial, sans-serif;
width: 90%;
margin: 2rem auto;
width: 90%;
}

/* Demo styles */
body .card {
margin-bottom: 2rem;
}

.quoted::before {
/* Many sans fonts do not have smart or book quotes so prefer ones that do */
font-family: Georgia, 'Times New Roman', Times, serif;
content: open-quote;
}

.quoted::after {
/* Many sans fonts do not have smart or book quotes so prefer ones that do */
font-family: Georgia, 'Times New Roman', Times, serif;
content: close-quote;
}

.quoted {
/* Kind of cludgy, but this will preserve your main font within the smart quotes */
font-family: inherit;
quotes: "“""”""‘""’";
}

/* This is demo specific styling for a couple of the cards example's
child content. The reusable cards stuff is all in card.css */
Expand Down Expand Up @@ -89,13 +61,13 @@
}

.card-rating span {
color: var(--grey);
color: var(--agnosticui-default-gray-dark);
}

.card-votes {
font-size: .825em;
font-style: italic;
color: var(--lightgrey);
color: var(--agnosticui-default-gray-light);
}

.card-image-wrap {
Expand Down Expand Up @@ -302,9 +274,9 @@ <h1 style="margin: 0;">Card Base / No Skin</h1>
<p>If using CSS custom properties theming is not enough customizability for you, this approach may help. So, each
card's CSS
is, essentially, split into two classes between a card's base and its skinning styles:
<pre>.card-base</pre> and
<pre>.card-skin</pre> with
<pre>.card</pre> combings these two for convenience. But, check out how you can leave out the skin…
<i>.card-base</i> and
<i>.card-skin</i> with
<i>.card</i> combings these two for convenience. But, check out how you can leave out the skin…
</p>
<p>If you inspect this card in devtools, you'll see that we use the <i>card-base</i> class.
With only the base styles, I can customize the skin exactly to my liking. For example, I've
Expand Down
34 changes: 29 additions & 5 deletions agnosticui-css/common.css
@@ -1,12 +1,17 @@
@import "colors.css";
@import "spacing.css";
@import "button.css";
@import "typography.css";
@import "input.css";
@import "button-group.css";
@import "card.css";
@import "colors.css";
@import "flexboxgrid-grid.css";
@import "flexboxgrid-col.css";
@import "flexboxgrid-row.css";

@import "header.css";
@import "headernav.css";
@import "headernavitem.css";
@import "input.css";
@import "progress.css";
@import "spacing.css";
@import "typography.css";

body {
font-family: var(--agnosticui-default-font-family);
Expand Down Expand Up @@ -37,6 +42,25 @@ i {
top: -1px;
}

.quoted::before {
/* Many sans fonts do not have smart or book quotes so prefer ones that do */
font-family: Georgia, 'Times New Roman', Times, serif;
content: open-quote;
}

.quoted::after {
/* Many sans fonts do not have smart or book quotes so prefer ones that do */
font-family: Georgia, 'Times New Roman', Times, serif;
content: close-quote;
}

.quoted {
/* Kind of cludgy, but this will preserve your main font within the smart quotes */
font-family: inherit;
quotes: "“""”""‘""’";
}


p {
font-size: 18px;
}
Expand Down
4 changes: 1 addition & 3 deletions agnosticui-css/flexboxgrid.html
Expand Up @@ -4,9 +4,7 @@

<head>
<title>FlexGrid</title>
<link rel="stylesheet" href="./flexboxgrid-grid.css">
<link rel="stylesheet" href="./flexboxgrid-row.css">
<link rel="stylesheet" href="./flexboxgrid-col.css">
<link rel="stylesheet" href="./common.css">
<style>
body {
margin-top: 2em;
Expand Down
4 changes: 1 addition & 3 deletions agnosticui-css/header.html
Expand Up @@ -4,9 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./header.css">
<link rel="stylesheet" href="./headernav.css">
<link rel="stylesheet" href="./headernavitem.css">
<link rel="stylesheet" href="./common.css">
<title>Header</title>

<style>
Expand Down
5 changes: 1 addition & 4 deletions agnosticui-css/index.html
Expand Up @@ -4,10 +4,7 @@

<head>
<title>Button</title>
<link rel="stylesheet" href="./button.css">
<link rel="stylesheet" href="./button-group.css">
<link rel="stylesheet" href="./progress.css">
<link rel="stylesheet" href="./header.css">
<link rel="stylesheet" href="./common.css">
<style>
body {
width: 750px;
Expand Down
1 change: 0 additions & 1 deletion agnosticui-css/input.html
Expand Up @@ -5,7 +5,6 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Inputs</title>

<link rel="stylesheet" href="./common.css">
<style>
/* these styles are purely demonstration related only, and therefor
Expand Down
4 changes: 1 addition & 3 deletions agnosticui-css/progress.html
Expand Up @@ -4,9 +4,7 @@

<head>
<title>Progress</title>
<link rel="stylesheet" href="./progress.css">
<link rel="stylesheet" href="./button.css">
<link rel="stylesheet" href="./button-group.css">
<link rel="stylesheet" href="./common.css">
<style>
/* these styles are purely demonstration related styles only */
body {
Expand Down

0 comments on commit 645668e

Please sign in to comment.