Skip to content

Commit

Permalink
updated landmark design pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jongund committed Jan 19, 2025
1 parent 6c304c5 commit 9411b86
Show file tree
Hide file tree
Showing 34 changed files with 1,399 additions and 11,586 deletions.
80 changes: 80 additions & 0 deletions content/patterns/landmarks/css/tabs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
.tabs {
font-family: "lucida grande", sans-serif;
}

[role="tablist"] {
min-width: 100%;
}

[role="tab"],
[role="tab"]:focus,
[role="tab"]:hover {
display: inline-block;
position: relative;
z-index: 2;
top: 2px;
margin: 0;
margin-top: 4px;
padding: 3px 3px 4px;
border: 1px solid hsl(219deg 1% 72%);
border-bottom: 2px solid hsl(219deg 1% 72%);
border-radius: 5px 5px 0 0;
background: hsl(220deg 20% 94%);
outline: none;
font-weight: bold;
max-width: 22%;
overflow: hidden;
text-align: left;
cursor: pointer;
}

[role="tab"][aria-selected="true"] {
padding: 2px 2px 4px;
margin-top: 0;
border-width: 2px;
border-top-width: 6px;
border-top-color: rgb(36 116 214);
border-bottom-color: hsl(220deg 43% 99%);
background: hsl(220deg 43% 99%);
}

[role="tab"][aria-selected="false"] {
border-bottom: 1px solid hsl(219deg 1% 72%);
}

[role="tab"] span.focus {
display: inline-block;
margin: 2px;
padding: 4px 6px;
}

[role="tab"]:hover span.focus,
[role="tab"]:focus span.focus,
[role="tab"]:active span.focus {
padding: 2px 4px;
border: 2px solid rgb(36 116 214);
border-radius: 3px;
}

[role="tabpanel"] {
padding: 5px;
border: 2px solid hsl(219deg 1% 72%);
border-radius: 0 5px 5px;
background: hsl(220deg 43% 99%);
min-height: 10em;
width: 100%;
overflow: auto;
}

[role="tabpanel"].is-hidden {
display: none;
}

[role="tabpanel"] p {
margin: 0;
}

.code {
font-family: courier, monospace;
background: #f0f0f0;
}
160 changes: 0 additions & 160 deletions content/patterns/landmarks/examples/HTML5.html

This file was deleted.

Loading

0 comments on commit 9411b86

Please sign in to comment.