Skip to content

Commit

Permalink
Remove header.css and replace with tailwind styles (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bethany Dunfield authored Oct 9, 2020
1 parent 0ecc277 commit fc3a491
Show file tree
Hide file tree
Showing 14 changed files with 284 additions and 361 deletions.
295 changes: 0 additions & 295 deletions app/assets/stylesheets/header.css

This file was deleted.

2 changes: 1 addition & 1 deletion app/assets/stylesheets/homepage.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions app/assets/stylesheets/tailwind/layout.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@layer components {
.container {
@apply mx-auto w-full;
}
}
38 changes: 27 additions & 11 deletions app/assets/stylesheets/tailwind/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

html {
font-size: 62.5%;
Expand All @@ -13,7 +15,7 @@ h2 {
}

a {
@apply underline text-base;
@apply underline text-smaller;
}

p {
Expand All @@ -24,22 +26,36 @@ li {
@apply text-base leading-tight;
}

.btn {
padding: .526315em .789473em .263157em;
@apply no-underline inline-block text-white text-smaller leading-tight;
}

.btn-blue {
background-color: theme("colors.blue.lighter");
@apply py-4 px-5 font-bold no-underline border-b-2;
@apply px-5 py-4 border-b-2 border-black font-bold text-black text-base;
}

.btn-light {
color: theme("colors.green.default");
border-color: theme("colors.green.default");
background-color: theme("colors.white.default");
@apply py-4 px-6 font-bold no-underline border-2;
border-bottom: 4px solid theme("colors.green.dark");
.btn-green {
background-color: theme("colors.green.default");
box-shadow: 0 2px 0 theme("colors.green.border");
}
.btn-green:hover {
background-color: theme("colors.green.hover");
}

@tailwind components;

@tailwind utilities;
/* Homepage Button */
#contact-form .btn {
color: theme("colors.green.darker");
border-color: theme("colors.green.darker");
background-color: theme("colors.white.default");
@apply px-6 py-4 border-b-4 font-bold border-2;
border-bottom: 4px solid;
box-shadow: none;
}
#contact-form .btn:hover {
@apply bg-gray-selected;
}

.input {
border-color: #000;
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/tailwind/typography.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@layer components {
/* links */

}
2 changes: 1 addition & 1 deletion app/templates/components/page-footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<button
data-button-id={{button_id}}
type="submit"
class="btn-light text-base outline-none focus:shadow-outline hover:bg-gray-selected button{% if destructive %}-destructive{% endif %}"
class="btn btn-green text-base outline-none focus:shadow-outline {% if destructive %}-destructive{% endif %}"
{% if button_name %}name="{{ button_name }}"{% endif %}
{% if button_value %}value="{{ button_value }}"{% endif %}
>
Expand Down
Loading

0 comments on commit fc3a491

Please sign in to comment.