Skip to content

Commit

Permalink
fix: missing styling on MdTiles after refactor to button (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorascharff authored Jan 8, 2024
1 parent 5397a07 commit 4e9b165
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@miljodirektoratet/md-css",
"version": "1.0.21",
"version": "1.0.22",
"description": "CSS for Miljødirektoratet",
"author": "Miljødirektoratet",
"main": "./src/index.css",
Expand Down
14 changes: 10 additions & 4 deletions packages/css/src/tile/tile.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* HORIZONTAL TILES */
.md-tile {
padding: 1.5em;
padding: 26px;
border: 1px solid var(--mdGreyColor60);
background-color: var(--mdPrimaryColor10);
color: var(--mdGreyColor);
Expand All @@ -18,6 +18,7 @@
border: 1px solid var(--mdPrimaryColor);
background-color: var(--mdPrimaryColor20);
transition: all 0.15s ease-in-out;
cursor: pointer;
}

.md-tile:not(.md-tile--disabled):focus {
Expand Down Expand Up @@ -52,10 +53,13 @@

.md-tile__content-heading {
font-size: 20px;
align-items: flex-start;
display: flex;
}

.md-tile__content-description {
margin-top: 1em;
font-size: 16px;
}

.md-tile__arrow {
Expand Down Expand Up @@ -100,6 +104,7 @@
.md-tile-vertical:hover {
border: 1px solid var(--mdPrimaryColor);
background-color: var(--mdPrimaryColor20);
cursor: pointer;
transition: all 0.15s ease-in-out;
}

Expand All @@ -114,15 +119,15 @@
display: flex;
flex-direction: column;
align-items: center;
padding: 2em;
padding: 32px;
}

.md-tile-vertical--small .md-tile-vertical__content {
padding: 1.5em;
padding: 26px;
}

.md-tile-vertical--large .md-tile-vertical__content {
padding: 3em;
padding: 40px;
}

.md-tile-vertical__content-text {
Expand All @@ -149,4 +154,5 @@

.md-tile-vertical__content-description {
margin-top: 1em;
font-size: 16px;
}

0 comments on commit 4e9b165

Please sign in to comment.