Skip to content
Closed
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 74 additions & 2 deletions copi.owasp.org/assets/css/cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ $wildcard-mobile-color: rgb(251, 182, 124);
background-color: scale-color($cornucopia-color, $lightness: 75%, $saturation: -20%);
}

&.wildcard {
&.wild-card {
background-color: scale-color($wildcard-color, $lightness: 75%, $saturation: -20%);
}

Expand Down Expand Up @@ -965,7 +965,7 @@ $wildcard-mobile-color: rgb(251, 182, 124);

.value {
position: absolute;
bottom: clmap(48px, 4.8vw, 64px);
bottom: clamp(48px, 4.8vw, 64px);
right: clamp(-29px, -2.9vw, -38px);
color: rgb(42, 10, 60);
font-family: 'Open Sans Regular';
Expand Down Expand Up @@ -1885,3 +1885,75 @@ $wildcard-mobile-color: rgb(251, 182, 124);
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
filter: alpha(opacity=20);
}
/* DBD Card Styles */

.card.dbd {

.left-value {
flex: none;
position: relative;
top: clamp(36px, 3.6vw, 48px);

height: clamp(72px, 7.2vw, 96px);
width: clamp(55px, 5.5vw, 74px);



padding: clamp(28px, 2.8vw, 37px) 0;
border-top-right-radius: clamp(12px, 1.2vw, 16px);
border-bottom-right-radius: clamp(12px, 1.2vw, 16px);

color: #fff;
text-transform: uppercase;
font-family: 'Segoe Condensed';
font-size: clamp(41px, 4.1vw, 55px);
font-weight: 600;
text-align: center;
}

.main-content {
overflow: hidden;
flex: auto;
padding: clamp(13px, 1.3vw, 18px) clamp(12px, 1.2vw, 16px);

.category {
font-family: 'Segoe Light';
font-size: clamp(22px, 2.2vw, 29px);
font-weight: 300;
margin-bottom: 10px;
}

.description {
font-family: 'Segoe';
font-size: clamp(12px, 1.2vw, 16px);
line-height: 1.3;
}
}
&.authentication {
.left-value { background-color: $authentication-color; }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the Cornucopia Website App Edition colors.
The colors for the Digital Benefits and Disbenefits (DBD) deck are all different.
Please have a look at: https://www.digitalbenefits.uk/deck/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scope Rifle Green (#3E4736)

architecture Mustard Green (#677740)

agency Sunray (#DBBC58)

trust Café Au Lait (#A8854C)

porosity Chestnut (#944C36)

cornucopia Puce Red (#613030)

joker Pastel Orange (#FEB048)

}

&.authorization {
.left-value { background-color: $authorization-color; }
}

&.data-validation-encoding {
.left-value { background-color: $data-validation-encoding-color; }
}

&.session-management {
.left-value { background-color: $session-management-color; }
}

&.cryptography {
.left-value { background-color: $cryptography-color; }
}

&.cornucopia {
.left-value { background-color: $cornucopia-color; }
}

&.wild-card {
.left-value { background-color: $wildcard-color; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,25 @@
<% end %>
</div>
</div>

<% @card.edition == "dbd" -> %>

<div class={["card", "dbd", Slug.slugify(@card.category), "n" <> @card.value]}>
<div class="left-value"><%= @card.value %></div>
<div class="main-content">
<p class="category"><%= @card.category %></p>

<p class="description"><%= @card.description %></p>

<p class="description">
<a class="info" rel="help" target="_blank" href={@card.url}>
Need more info?
</a>
</p>

</div>
</div>

<% @card.edition == "eop" -> %>

<div class={["card", "eop", Slug.slugify(@card.category), "n" <> @card.value]}>
Expand Down
Loading
Loading