open-consul/website/source/assets/stylesheets/consul-connect/components/_text-asset.scss

160 lines
2.7 KiB
SCSS
Raw Normal View History

.g-text-asset {
text-align: center;
@media (min-width: 768px) {
align-content: space-between;
display: flex;
justify-content: center;
margin: 0 (-$site-gutter-padding);
text-align: left;
}
&.reverse {
flex-direction: row-reverse;
& > div:first-child > div {
margin-left: auto;
@media (min-width: 768px) {
padding: 0 24px 0 0;
}
@media (min-width: 992px) {
padding-right: 32px;
}
}
}
&.large {
margin-bottom: -56px;
@media (min-width: 768px) {
margin-bottom: -96px;
}
img {
width: 145%;
}
}
& > div {
@media (min-width: 768px) {
align-items: center;
margin: 0 auto;
display: flex;
padding: 0 $site-gutter-padding;
width: 50%;
}
&:first-child {
margin-bottom: 32px;
@media (min-width: 768px) {
margin-bottom: 0;
}
& > div {
@media (min-width: 768px) {
margin-left: 0;
max-width: 454px;
padding: 0 0 0 24px;
}
@media (min-width: 992px) {
padding-left: 32px;
}
& a {
color: #1563ff;
&:focus,
&:hover {
color: #2c72fe;
& path {
fill: #2c72fe;
}
}
& svg {
margin-left: 10px;
}
}
}
}
& > img {
width: 100%;
&.shadow {
box-shadow: 0 40px 48px -20px rgba(63, 68, 85, 0.4);
}
}
&.code-sample > div {
box-shadow: 0 40px 48px -20px rgba(63, 68, 85, 0.4);
color: $white;
margin: 0;
text-align: left;
width: 100%;
span {
background: #252937;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
display: block;
height: 32px;
@media (min-width: 768px) {
height: 40px;
}
}
.code {
background: #1e212a;
font-size: 1.4rem;
overflow: auto;
padding: 16px 24px 32px;
width: 100%;
code {
background: #1e212a;
border-radius: 0;
color: $white;
font-size: 1.2rem;
white-space: pre;
@media (min-width: 992px) {
font-size: 1.4rem;
}
&.keyword {
color: #be5580;
}
}
}
}
&.logos {
justify-content: center;
& > div {
align-items: center;
display: flex;
flex-direction: column;
& img {
margin: 29px 0;
}
}
}
}
h3 {
margin: 0 0 16px 0;
@media (min-width: 768px) {
margin-top: 16px;
}
}
}