Skip to content

Commit c22b3b4

Browse files
authored
Update base.css
1 parent 8c10c3e commit c22b3b4

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed

docs/theme/css/base.css

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,3 +314,103 @@ h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .head
314314
-moz-border-radius: 6px 0 6px 6px;
315315
border-radius: 6px 0 6px 6px;
316316
}
317+
318+
#carbonads {
319+
--width: 180px;
320+
--font-size: 14px;
321+
}
322+
323+
#carbonads {
324+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
325+
display: block;
326+
overflow: hidden;
327+
margin-bottom: 20px;
328+
max-width: var(--width);
329+
border-radius: 4px;
330+
text-align: center;
331+
box-shadow: 0 0 0 1px hsla(0, 0%, 0%, .1);
332+
background-color: hsl(0, 0%, 98%);
333+
font-size: var(--font-size);
334+
line-height: 1.5;
335+
}
336+
337+
#carbonads a {
338+
color: inherit;
339+
text-decoration: none;
340+
}
341+
342+
#carbonads a:hover {
343+
color: inherit;
344+
}
345+
346+
#carbonads span {
347+
position: relative;
348+
display: block;
349+
overflow: hidden;
350+
}
351+
352+
.carbon-img {
353+
display: block;
354+
margin-bottom: 8px;
355+
max-width: var(--width);
356+
line-height: 1;
357+
}
358+
359+
.carbon-img img {
360+
display: block;
361+
margin: 0 auto;
362+
max-width: var(--width) !important;
363+
width: var(--width);
364+
height: auto;
365+
}
366+
367+
.carbon-text {
368+
display: block;
369+
padding: 0 1em 8px;
370+
}
371+
372+
.carbon-poweredby {
373+
display: block;
374+
padding: 10px var(--font-size);
375+
background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
376+
text-transform: uppercase;
377+
letter-spacing: .5px;
378+
font-weight: 600;
379+
font-size: 9px;
380+
line-height: 0;
381+
}
382+
383+
@media only screen and (min-width: 320px) and (max-width: 759px) {
384+
#carbonads {
385+
float: none;
386+
margin: 0 auto;
387+
max-width: 330px;
388+
}
389+
#carbonads span {
390+
position: relative;
391+
}
392+
#carbonads > span {
393+
max-width: none;
394+
}
395+
.carbon-img {
396+
float: left;
397+
margin: 0;
398+
}
399+
400+
.carbon-img img {
401+
max-width: 130px !important;
402+
}
403+
.carbon-text {
404+
float: left;
405+
margin-bottom: 0;
406+
padding: 8px 20px;
407+
text-align: left;
408+
max-width: calc(100% - 130px - 3em);
409+
}
410+
.carbon-poweredby {
411+
left: 130px;
412+
bottom: 0;
413+
display: block;
414+
width: 100%;
415+
}
416+
}

0 commit comments

Comments
 (0)