Pokazywanie postów oznaczonych etykietą box. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą box. Pokaż wszystkie posty
Źródło: http://css-tricks.com/snippets/css/stitched-look/

HTML

<div class="stitched"> Stitched </div>

CSS

.stitched { padding: 20px; margin: 10px; background: #ff0030; color: #fff; font-size: 21px; font-weight: bold; line-height: 1.3em; border: 2px dashed #fff; border-radius: 10px; box-shadow: 0 0 0 4px #ff0030, 2px 1px 6px 4px rgba(10, 10, 0, 0.5); text-shadow: -1px -1px #aa3030; font-weight: normal; } body { padding: 10px; }

CSS3 - fastryga (uszyta ramka)

Ramka wykonana w całości przy użyciu CSS, bez zbędnej grafiki.
Źródło: http://cssdeck.com/labs/fence-edge

HTML

div jakiś_napis

CSS

$size: 10px $size-double: $size*2 html height: 100% body height: 100% margin: 0 text-align: center &:after content: "" display: inline-block vertical-align: middle height: 100% width: 0 div display: inline-block vertical-align: middle line-height: 120px width: 75% padding: $size $size font-size: 28px font-family: Arial, sans-serif color: #fff text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) border: $size solid transparent border-width: $size 0 background-color: lightblue background-color: hsla(0, 0%, 0%, 0) $half: 50.5% $color-top: transparent $half, lightblue $half $color-bottom: transparent $half, skyblue $half $top-left: linear-gradient(top left, $color-top) $top-right: linear-gradient(top right, $color-top) $bottom-left: linear-gradient(bottom left, $color-bottom) $bottom-right: linear-gradient(bottom right, $color-bottom) @include background-image(linear-gradient(lightblue, skyblue), $top-left, $top-right, $bottom-left, $bottom-right) background-repeat: repeat, repeat-x, repeat-x, repeat-x, repeat-x background-position: 0 0, $size 0, $size 0, $size 100%, $size 100% background-size: auto auto, $size-double $size-double, $size-double $size-double, $size-double $size-double, $size-double $size-double background-clip: padding-box, border-box, border-box, border-box, border-box background-origin: padding-box, border-box, border-box, border-box, border-box

CSS box z ozdobną krawędzią


Na CSS wikidot, Bryce Cameron opublikował growl notification style. Jest to lekko lekko transparentna grafitowa ramka o zaokrąglonych rogach uzyskana za pomocą styli.

HTML

<div class="wrapper" id="%priority%"> <div id="background"> <div id="icon"> <img alt="icon" src="growlimage://%image%" /></div> <div id="title"> %title%</div> <div id="text"> %text%</div> </div> </div>

CSS

body { color: #222; font-family: Helvetica, sans-serif; margin: 0; padding: 0; } @-webkit-keyframes fadeIn { 0% {opacity: 0;} 100% {opacity: 1;} } .wrapper { float: left; } #background { float: left; border: 1px solid #222; -webkit-border-radius: 8px; margin: 5px; width: 300px; padding: 10px 10px; background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(0,rgba(255,255,255,0.18)), color-stop(0.5,rgba(255,255,255,0.06)), color-stop(0.5,rgba(255,255,255,0)), color-stop(1,rgba(255,255,255,0)) ), -webkit-gradient(linear, 0 0, 0 100%, color-stop(0,rgba(0,0,0,0.7)), color-stop(1,rgba(0,0,0,0.9)) ); -webkit-box-shadow: 0 0 5px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,0.2) inset, 0 -1px 0 rgba(255,255,255,0.2) inset, 1px 0 0 rgba(255,255,255,0.2) inset, -1px 0 0 rgba(255,255,255,0.2) inset; webkit-animation-name: fadeIn; -webkit-animation-duration: 0.4s; -webkit-animation-iteration-count: 1; -webkit-animation-direction: alternate; -webkit-animation-timing-function: ease-in; } #icon { float: left; width: 48px; height: 48px; margin-right: 15px; } #icon img { width: 48px; height: 48px; } #title { font-weight:bold; padding: 0 2px 0 0; font-size: 15px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6); letter-spacing: 0; text-align: left; margin-left: 50px; } #text { font-weight: normal; font-size: 14px; color: #eaeaea; text-shadow: 0 1px 1px rgba(0,0,0,0.6); text-transform: none; margin-top: 6px; margin-left: 63px; word-wrap: break-word; } @-webkit-keyframes emergency { 0% {opacity: 1;} 60% {opacity: 1;} 100% {opacity: 0;} } #emergency #background { border: 1px solid red; -webkit-animation-name: emergency; -webkit-animation-duration: 1s; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: alternate; -webkit-animation-timing-function: ease-in-out; }
Download: link, mirror
Źródło: http://css3.wikidot.com/blog:freebie-growl-notification-style

Przycisk w nowoczesnym stylu