Edit
// /* scss/cheatsheet/_wm-cheatsheet.scss */
// @import url(../prod/main.css);
// .group-wrapper {
// display: flex;
// flex-direction: row;
// & p {
// flex: 0 1 50%;
// }
// }
.wm-ad-docs h5 {
margin-top: 1rem;
clear: both;
}
body .doc_image {
float: right;
width: auto;
max-width: 400px;
margin: 0 0 2rem 1rem;
display: block;
padding: 15px;
border: 1px solid silver;
}
.cheatsheet__section-title {
font-size: 2rem;
font-weight: bold;
padding-bottom: 0.5rem;
}
.cheatsheet__section-subtitle {
font-size: 1.5rem;
font-weight: bold;
padding-bottom: 0.5rem;
}
.hexTable td {
border-bottom: 4px solid white;
}
.hexTable th:first-child,
.hexTable td:first-child {
text-align: right;
}
.colorVar span {
padding: 3px 6px;
display: inline-block;
}
td {
padding: 10px;
border: 1px solid silver;
}
.colorchart {
display: grid;
grid-template-columns: repeat(auto-fit, min(50%, 370px));
grid-gap: 0;
}
.colorcontainer {
border: 1px solid silver !important;
padding: 15px 25px;
font-size: 14px;
}
.value-chart td.colorcategory {
font-family: font(heading-sans);
font-weight: 700;
text-transform: uppercase;
padding-top: 10px;
padding-bottom: 10px;
border: none !important;
}
.colorcode code {
padding: 0 !important;
font-size: 14px !important;
}
.colorvaluecontainer {
padding-bottom: 20px;
border-bottom: 1px solid silver !important;
position: relative;
}
.colorvaluecontainer:last-child {
border-bottom: none !important;
}
.colorstrings {
margin-bottom: 20px;
font-size: 14px;
}
.colorchip {
width: 100%;
height: 30px;
margin: 4px 12px 4px 0;
}
.colorchip[style*="white"],
.colorchip[style*="fff"] {
border: 1px solid silver !important;
}
.value-chart td {
border: 1px solid #efefef !important;
padding: 7px 10px !important;
min-width: none;
vertical-align: top;
}
.value-chart .small-chip {
display: block;
height: 20px;
width: 20px;
float: left;
margin: 3px 6px 0 3px;
}
// font families
.font-list {
font-size: 18px;
font-family: font(sans);
}
.text-font-family,
.text-line-height,
.heading-line-height {
font-family: font(text-sans);
}
.text-font-family:after {
content: " : " + map-get($fonts, "text-sans");
}
.text-normal {
font-weight: font(sans-weight, normal);
&:after {
content: " : " + font("sans-weight", "normal");
}
}
.text-italic {
font-weight: font(sans-weight, normal);
font-style: italic;
&:after {
content: " : " + font("sans-weight", "normal");
}
}
.text-medium {
font-weight: font(sans-weight, medium);
&:after {
content: " : " + font("sans-weight", "medium");
}
}
.text-demi {
font-weight: font(sans-weight, demi);
&:after {
content: " : " + font("sans-weight", "demi");
}
}
.text-demi-italic {
font-weight: font(sans-weight, demi-italic);
&:after {
content: " : " + font("sans-weight", "demi-italic");
}
font-style: italic;
}
.text-bold {
font-weight: font(sans-weight, bold);
&:after {
content: " : " + font("sans-weight", "bold");
}
}
.heading-font-family {
font-family: font(heading-serif);
}
.heading-font-family:after {
content: " : " + map-get($fonts, "heading-serif");
}
.heading-light {
font-family: font(heading-serif);
font-weight: font(serif-weight, light);
&:after {
content: " : " + font("serif-weight", "light");
}
}
.heading-book {
font-family: font(heading-serif);
font-weight: font(serif-weight, book);
&:after {
content: " : " + font("serif-weight", "book");
}
}
.heading-medium {
font-family: font(heading-serif);
font-weight: font(serif-weight, medium);
&:after {
content: " : " + font("serif-weight", "medium");
}
}
.heading-bold {
font-family: font(heading-serif);
font-weight: font(serif-weight, bold);
&:after {
content: " : " + font("serif-weight", "bold");
}
}
.heading-black {
font-family: font(heading-serif);
font-weight: font(serif-weight, "black");
&:after {
content: " : " + font("serif-weight", "black");
}
}
.alt-heading-font-family {
font-family: font(alt-heading-serif);
}
.alt-heading-font-family:after {
content: " : " + font(alt-heading-serif);
}
.alt-heading-weights:after {
content: " : " + font(alt-heading-weight, medium);
}
.alt-heading-medium {
font-family: font(alt-heading-serif);
font-weight: font(alt-heading-weight, medium);
&:after {
content: " : " + font("alt-heading-weight", "medium");
}
}
.text-line-height:after {
content: " : " + map-get($fonts, "text-line-height");
}
.heading-line-height:after {
content: " : " + map-get($fonts, "heading-line-height");
}
.text-sans {
font-family: font(text-sans);
&:after {
content: "font-family: font(text-sans)";
}
&-medium {
font-family: font(text-sans);
font-weight: font(sans-weight, medium);
&:after {
content: "font-weight: font(sans-weight, medium);";
}
}
}
@media print {
#wm-cheatsheet-container.compWrap {
display: block;
}
#atomsWrap .atoms-main {
padding-left: 40px;
}
.atoms-main .cheatsheet {
overflow: hidden;
}
}
// .color {
// width: 100%;
// float: none;
// margin-right: 10px;
// margin-bottom: 10px;
// color: #fff;
// overflow: auto;
// }
// .color span {
// display: block;
// padding: 0.5rem;
// }
// .primary-colors,
// .secondary-colors {
// padding: 0;
// display: block;
// width: 100%;
// }
// .secondary-colors {
// display: inline-block;
// }
// .maincolor {
// height: 100px;
// }
// .text-dark {
// color: var(--color-text-dark);;
// }
// .link-base {
// color: var(--color-link-base);
// }
// .link-hover {
// color: var(--color-link-dark);
// }
// // colors
// .color1 {
// background: var(--color-wmgreen-90);
// & > span.maincolor:after {
// content: ": " + map-get(map-get($colors, primary), base);
// }
// & .dark {
// background-color: color(primary, 700);
// }
// & > span.dark:after {
// content: ": " + map-get(map-get($colors, primary), 700);
// }
// }
// .color2 {
// background: var(--color-webgold-75);
// & > span.maincolor:after {
// content: ": " + map-get(map-get($colors, secondary), base);
// }
// & .dark {
// background-color: var(--color-wmgold-55);
// }
// & > span.dark:after {
// content: ": " + map-get(map-get($colors, secondary), accent);
// }
// }
// .color3 {
// background: var(--color-griffingreen-100);
// & > span.maincolor:after {
// content: ": " + map-get(map-get($colors, tertiary), base);
// }
// }
// .color5 {
// background: var(--color-wmsilver-25);
// & > span.maincolor:after {
// content: ": " + map-get(map-get($colors, neutral), base);
// }
// & .light {
// background-color: var(--color-wmsilver-0);
// }
// & > span.light:after {
// content: ": " + map-get(map-get($colors, neutral), light);
// }
// }
// .color7 {
// background: var(--color-colonialyellow-45);
// & > span:after {
// content: ": " + map-get(map-get($colors, alternate), "yellow");
// }
// }
// .color8 {
// background: var(--color-patina-60);
// & > span:after {
// content: ": " + map-get(map-get($colors, alternate), "brightgreen");
// }
// }
// .color9 {
// background: var(--color-wbrick-65);
// & > span:after {
// content: ": " + map-get(map-get($colors, alternate), "red");
// }
// }
// .color10 {
// background: var(--color-collegesky-35);
// & > span:after {
// content: ": " + map-get(map-get($colors, alternate), "blue");
// }
// }
// .color11 {
// background: var(--color-moss-60);
// & > span:after {
// content: ": " + map-get(map-get($colors, alternate), "green");
// }
// }
// .color12 {
// background: var(--color-collegewoods-75);
// & > span:after {
// content: ": " + map-get(map-get($colors, alternate), "mutedgreenaccessible");
// }
// }
// // text size classes for example
// .text--9xl {
// font-size: 1.91rem;
// }
// .text--8xl {
// font-size: 1.79rem;
// }
// .text--7xl {
// font-size: 1.68rem;
// }
// .text--6xl {
// font-size: 1.58rem;
// }
// .text--5xl {
// font-size: 1.48rem;
// }
// .text--4xl {
// font-size: 1.39rem;
// }
// .text--xxxl {
// font-size: 1.3rem;
// }
// .text--xxl {
// font-size: 1.25rem;
// }
// .text--xl {
// font-size: 1.14rem;
// }
// .text--lg {
// font-size: 1.07rem;
// }
// .text--md {
// font-size: 1rem;
// }
// .text--sm,
// small {
// font-size: 0.94rem;
// }
// .text--xs {
// font-size: 0.88rem;
// }
// .text--xxs {
// font-size: 0.83rem;
// }
// // * css only for example, no global styles should be set here
// .space-example {
// background: #ccc;
// margin: 10px;
// display: inline-block;
// }
// .space-example > div {
// background: beige;
// }
// .space-examples {
// display: flex;
// align-items: center;
// }
// .space-examples > div {
// background: #ccc;
// margin: 10px;
// }
// .space-examples > div > div {
// background: beige;
// display: block;
// }
// .space-5xs {
// width: space(5xs);
// height: space(5xs);
// &:after {
// content: "size" + space(5xs);
// display: block;
// }
// }
// .space-3xs {
// width: space(3xs);
// height: space(3xs);
// &:after {
// content: "size" + space(3xs);
// display: block;
// }
// }
// .space-2xs {
// width: 0.2665em;
// height: 0.2665em;
// &:after {
// content: "size" + 0.2665em;
// display: block;
// }
// }
// .space-xs {
// width: 0.35533rem;
// height: 0.35533rem;
// &:after {
// content: "size" + 0.35533rem;
// display: block;
// }
// }
// .space-sm {
// width: 0.5rem;
// height: 0.5rem;
// &:after {
// content: "size" + 0.5rem;
// display: block;
// }
// }
// .space-md {
// width: 1.066rem;
// height: 1.066rem;
// &:after {
// content: "size" + 1.066rem;
// display: block;
// }
// }
// .space-lg {
// width: 2.132rem;
// height: 2.132rem;
// &:after {
// content: "size" + 2.132rem;
// display: block;
// }
// }
// .space-xl {
// width: 3.12rem;
// height: 3.12rem;
// &:after {
// content: "size" + 3.12rem;
// display: block;
// }
// }
// .space-2xl {
// width: 4.264rem;
// height: 4.264rem;
// &:after {
// content: "size" + 4.264rem;
// display: block;
// }
// }
// .space-3xl {
// width: 5.33rem;
// height: 5.33rem;
// &:after {
// content: "size" + 5.33rem;
// display: block;
// }
// }
// .space-4xl {
// width: 6.396rem;
// height: 6.396rem;
// &:after {
// content: "size" + 6.396rem;
// display: block;
// }
// }
// .space-5xl {
// width: 7.462rem;
// height: 7.462rem;
// &:after {
// content: "size" + 7.462rem;
// display: block;
// }
// }
// .space-10xl {
// width: 12.792rem;
// height: 12.792rem;
// &:after {
// content: "size" + 12.792rem;
// display: block;
// }
// }
// .space-11xl {
// width: space(11xl);
// height: space(11xl);
// &:after {
// content: "size" + space(11xl);
// display: block;
// }
// }
// // use for images in spacing
// .space-examples img {
// vertical-align: bottom;
// }
// .inset-3xs {
// padding: space(inset, 3xs);
// margin: space(inset, 3xs);
// }
// .inset-2xs {
// padding: space(inset, 2xs);
// margin: space(inset, 2xs);
// }
// .inset-xs {
// padding: 0.35533rem;
// margin: 0.35533rem;
// }
// .inset-sm {
// padding: 0.533rem;
// margin: 0.533rem;
// }
// .inset-md {
// padding: 1.066rem;
// margin: 1.066rem;
// }
// .inset-lg {
// padding: space(inset, lg);
// margin: space(inset, lg);
// }
// .inset-xl {
// padding: space(inset, xl);
// margin: space(inset, xl);
// }
// .inset-2xl {
// padding: space(inset, 2xl);
// margin: space(inset, 2xl);
// }
// .squish-2xs {
// padding: space(squish, 2xs);
// margin: space(squish, 2xs);
// }
// .squish-xs {
// padding: space(squish, xs);
// margin: space(squish, xs);
// }
// .squish-sm {
// padding: space(squish, sm);
// margin: space(squish, sm);
// }
// .squish-md {
// padding: space(squish, md);
// margin: space(squish, md);
// }
// .squish-lg {
// padding: space(squish, lg);
// margin: space(squish, lg);
// }
// .squish-xl {
// padding: space(squish, xl);
// margin: space(squish, xl);
// }
// .stretch-2xs {
// padding: space(stretch, 2xs);
// margin: space(stretch, 2xs);
// }
// .stretch-xs {
// padding: space(stretch, xs);
// margin: space(stretch, xs);
// }
// .stretch-sm {
// padding: space(stretch, sm);
// margin: space(stretch, sm);
// }
// .stretch-md {
// padding: space(stretch, md);
// margin: space(stretch, md);
// }
// .stretch-lg {
// padding: space(stretch, lg);
// margin: space(stretch, lg);
// }
// .stretch-xl {
// padding: space(stretch, xl);
// margin: space(stretch, xl);
// }
// // heights
// .heights td {
// border-bottom: 2px solid #666;
// }
// .heights td:first-child {
// background: var(--color-wmsilver-25);
// }
// .height-sm + td {
// height: height(sm);
// &:after {
// content: "height: " + map-get($heights, "sm");
// }
// }
// .height-md + td {
// height: height(md);
// &:after {
// content: "height: " + map-get($heights, "md");
// }
// }
// .height-lg + td {
// height: height(lg);
// &:after {
// content: "height: " + map-get($heights, "lg");
// }
// }
// .height-xl + td {
// height: height(xl);
// &:after {
// content: "height: " + map-get($heights, "xl");
// }
// }
// .height-full + td {
// height: height(full);
// &:after {
// content: "height: " + map-get($heights, "full");
// }
// }
// }