discourse-adplugin/assets/stylesheets/adplugin.scss

318 lines
5.7 KiB
SCSS
Raw Normal View History

@import "common/foundation/variables";
@import "common/foundation/mixins";
.google-dfp-ad {
padding: 3px 0;
margin-bottom: 10px;
clear: both;
}
.google-dfp-ad .dfp-ad-unit {
margin: 0 auto;
}
.google-adsense {
padding: 3px 0;
margin-bottom: 10px;
clear: both;
}
.google-adsense.adsense-responsive {
width: 100%;
}
.google-adsense .google-adsense-label {
width: 728px;
max-width: 100%;
margin: 0 auto;
}
.google-adsense.adsense-responsive .google-adsense-label {
width: 100%;
text-align: center;
}
.google-adsense .adsense-unit {
margin: 0 auto;
}
.google-adsense .google-adsense-label h2 {
margin: 4px 0 !important;
color: #858a8c;
text-transform: uppercase;
font-size: 12px;
2019-06-14 13:24:55 -04:00
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
}
.google-adsense .google-adsense-content {
margin: 0 auto;
}
.google-adsense.adsense-post-bottom {
max-width: 735px;
padding: 0 11px;
}
2019-06-14 13:24:55 -04:00
@media all and (max-width: 775px) {
.google-adsense.adsense-post-bottom {
box-sizing: border-box;
width: 100%;
}
}
.amazon-product-links {
padding: 3px;
margin-bottom: 10px;
clear: both;
}
2019-06-14 13:24:55 -04:00
.amazon-product-links .amazon-unit {
margin: 0 auto;
}
.amazon-product-links .amazon-product-links-label {
width: 728px;
margin: 0 auto;
}
.amazon-product-links .amazon-product-links-label h2 {
margin: 4px 0 !important;
color: #858a8c;
text-transform: uppercase;
font-size: 12px;
2019-06-14 13:24:55 -04:00
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
}
.google-dfp-ad .google-dfp-ad-label {
width: 728px;
margin: 0 auto;
}
.google-dfp-ad .google-dfp-ad-label h2 {
margin: 4px 0 !important;
color: #858a8c;
text-transform: uppercase;
font-size: 12px;
2019-06-14 13:24:55 -04:00
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
}
.google-dfp-ad.dfp-ad-post-bottom {
2019-06-14 13:24:55 -04:00
.google-dfp-ad-label,
.dfp-ad-unit {
margin: 0 0 0 52px;
}
}
.house-creative {
margin: 0 auto;
}
.house-creative.house-post-bottom {
margin: 0 0 10px 52px;
clear: both;
}
.codefund-wrapper {
z-index: 1;
font-family: system, "Helvetica Neue", Helvetica, Arial;
font-size: 13px;
box-sizing: border-box;
width: 100%;
line-height: 1.5;
display: block;
background-color: $primary-very-low;
padding: 12px 11px;
text-align: left;
margin: 12px 0;
}
.codefund-wrapper .codefund-text {
color: dark-light-choose($primary-medium, $secondary-medium);
text-decoration: none;
cursor: pointer;
}
.codefund-wrapper .codefund-text:hover {
text-decoration: underline;
}
.codefund-wrapper .codefund-text strong {
color: $primary;
}
.codefund-wrapper .codefund-powered-by:hover {
text-decoration: underline;
}
.codefund-wrapper .codefund-label {
margin-right: 4px;
padding: 2px 6px;
border-radius: 3px;
2019-06-14 13:24:55 -04:00
background-color: $tertiary;
color: $secondary;
}
.codefund-wrapper .codefund-label:hover {
text-decoration: none !important;
}
.codefund-wrapper .codefund-powered-by {
text-decoration: none;
color: dark-light-choose($primary-medium, $secondary-medium);
float: right;
font-size: 12px;
}
.codefund-wrapper .codefund-powered-by:hover {
text-decoration: underline;
cursor: pointer;
}
.codefund-wrapper.codefund-post-bottom {
width: calc(#{$topic-body-width} + 67px);
text-align: center;
}
@media all and (max-width: 775px) {
.codefund-wrapper.codefund-post-bottom {
width: 100%;
}
}
.codefund-wrapper.codefund-topic-above-suggested {
clear: both;
}
.codefund-wrapper .codefund-pixel {
visibility: hidden;
height: 1px;
width: 1px;
}
2019-04-07 07:31:07 -04:00
#carbonads {
display: block;
overflow: hidden;
padding: 1em;
border: 1px solid #ccc;
font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif;
line-height: 1.5;
margin-bottom: 15px;
}
#carbonads span {
position: relative;
display: block;
overflow: hidden;
}
.carbon-img {
float: left;
margin-right: 1em;
}
.carbon-img img {
display: block;
line-height: 1;
}
.carbon-text {
display: block;
float: left;
max-width: calc(100% - 130px - 1em);
text-align: left;
color: dark-light-choose($primary-medium, $secondary-medium);
}
.carbon-poweredby {
position: absolute;
right: 0; // You can also set the position to the "left" with the value of calc(130px + carbon-texts font size). If the font-size is 12px, youll want to set the left value as 142px. Itll align the .carbon-text with .carbon-poweredby
bottom: 0;
display: block;
2019-06-14 13:24:55 -04:00
font-size: 0.8em;
2019-04-07 07:31:07 -04:00
text-transform: uppercase;
line-height: 1;
letter-spacing: 1px;
color: $quaternary !important;
}
2019-09-16 14:26:17 -04:00
.adbutler-ad {
width: 728px;
height: 90px;
}
.adbutler-mobile-ad {
width: 320px;
height: 50px;
}
2019-09-16 14:35:58 -04:00
.adbutler-topic-list-top,
.adbutler-topic-above-suggested {
2019-09-16 14:26:17 -04:00
margin: 10px;
text-align: center;
}
.adbutler-topic-above-post-stream {
margin: 10px 0px 10px 0px;
}
.adbutler-post-bottom {
margin: 10px 0px 10px 56px;
2019-09-16 14:35:58 -04:00
}
2019-09-16 14:26:17 -04:00
.adplugin-mgmt {
.house-ads-actions {
.btn {
margin-right: 8px;
}
}
.house-ads-list {
margin-top: 1em;
}
.house-ads-settings {
.form-horizontal {
margin-top: 1em;
}
p.help {
margin: 0;
margin-top: 5px;
color: $primary-medium;
font-size: $font-down-1;
clear: both;
}
2019-06-14 13:24:55 -04:00
.house-ads-chooser,
.house-ads-text-input {
float: left;
margin-right: 20px;
}
.setting-controls {
float: left;
}
}
.house-ads-list-setting {
margin-bottom: 1.5em;
}
.content-body {
padding-left: 2%;
.controls {
margin-bottom: 1em;
}
.delete-button {
float: right;
}
.ace-wrapper {
position: relative;
height: 270px;
.ace_editor {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
}
}
}