studioespresso/craft-seo-fields

View on GitHub
src/assetbundles/dist/field.css

Summary

Maintainability
Test Coverage
.seofields-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e7eef3;
    margin-top: 1rem;
}

.seofields-tabs .label {
    order: 1;
    display: block;
    padding: 0.5rem 1rem;
    cursor: pointer;
    background: #f1f5f8;
    transition: background ease 0.2s;
}

.seofields-tabs .seofields-tab-content {
    padding-top: 0.3rem;
    order: 99;
    flex-grow: 1;
    width: 100%;
    display: none;
    padding: 0.6rem 1rem 2rem;
    color: #576575;
    background: #fff;
    border-width: 1px;
    border-style: solid;
    border-color: #e7eef3;
}

.seofields-tabs input[type="radio"] {
    display: none;
}

.seofields-tabs input.seofields-tab:checked + label {
    color: #29323d;
    background: #fff;
    background-clip: border-box;
    padding-top: 10px;
    padding-bottom: 10px;
    cursor: default;
    background-clip: padding-box;
    border-radius: 1px 1px 0 0;
    border: solid rgba(0, 0, 20, 0.1);
    border-top-width: medium;
    border-right-width: medium;
    border-bottom-width: medium;
    border-left-width: medium;
    border-width: 1px 1px 0;
    z-index: 1;
}

.seofields-tabs input.seofields-tab:checked + label + .seofields-tab-content {
    display: block;
}

@media (max-width: 45em) {
    .seofields-tabs .seofields-tab-content,
    .seofields-tabs label {
        order: initial;
    }

    .seofields-tabs label {
        width: 100%;
        margin-right: 0;
        margin-top: 0.2rem;
    }
}

.seofields-google-result > div {
    cursor: pointer;
    width: 100%;
}

.seofields-google-result__headline {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1.2;
    text-align: left;
    color: #1a0dab;
}

.seofields-google-result__link {
    color: #006621;
    font-size: 14px;
    line-height: 16px;
    text-align: left;
    width: auto;
    zoom: 1;
}

.seofields-google-result {
    font-family: arial, sans-serif;
    max-width: 500px;
    margin: 1.5rem auto;
    box-shadow: inset 0 0 0 1.7px rgba(0,0,0,.1),0 1px 4px 0 rgba(0,0,0,.1);
    padding: 1rem 1rem;

}
.seofields-google-result > div {
    pointer-events: none;
    width: 100%;
}

.seofields-google-result__headline {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1.2;
    text-align: left;
    color: #1a0dab;
}

.seofields-google-result__link {
    color: #006621;
    font-size: 14px;
    line-height: 16px;
    text-align: left;
    visibility: visible;
    white-space: nowrap;
    width: auto;
    zoom: 1;
}

.seofields-google-result__description {
    color: #545454;
    display: inline;
    font-size: 13px;
    height: auto;
    line-height: 18.2px;
    text-align: left;
    visibility: visible;
    width: auto;
    word-wrap: break-word;
    zoom: 1;
}

.fb-preview-container, .twitter-preview-container {
    padding: 2rem 1rem;
}

.fb-preview , .twitter-preview{
    margin: 0 auto;
    background-color: rgb(242, 243, 245);
    width: 500px;
    box-shadow: inset 0 0 0 1.7px rgba(0,0,0,.1),0 1px 4px 0 rgba(0,0,0,.1);
}

.twitter-preview {
    border-radius: 14px;
    width: 507px;
}

.fb-text-wrap, .twitter-text-wrap {
    padding: 10px 12px 10px 12px;
}

.fb-image-wrap, .twitter-image-wrap {
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
}

.fb-og-title, .twitter-title {
    color: rgb(29, 33, 41);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    margin-top: 5px;
    overflow-wrap: break-word;
}

.twitter-title {
    margin-top: 0px;
}

.twitter-image-wrap img {
    border-radius: 14px 14px 0px 0px
}


.fb-og-description, .twitter-description {
    color: rgb(96, 103, 112);
    direction: ltr;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", sans-serif;
    font-size: 16px;
    line-height: 20px;
    margin-top: 3px;
    max-height: 80px;
    overflow: hidden;
    overflow-wrap: break-word;
    overflow-x: hidden;
    overflow-y: hidden;
}

.fb-url, .twitter-url {
    color: rgb(96, 103, 112);
    direction: ltr;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", sans-serif;
    font-size: 12px;
    line-height: 11px;
    overflow: hidden;
    overflow-wrap: break-word;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.twitter-url {
    font-size: 15px;
    text-transform: initial;
    margin-top: 1px;
    margin-bottom: 3px;
}

@media only screen and (min-width: 770px) and (max-width: 1200px), (min-width: 1330px) {
    .seo-fields-facebook-text, .seo-fields-twitter-text {
        width: 75%;
        float: left;
    }
    .seo-fields-facebook-image, .seo-fields-twitter-image {
        width: 20%;
        margin-left: 24px;
        float: left;
    }
}