This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.textOffscreen { | |
text-indent: -9999px; | |
overflow: hidden; | |
text-decoration: none; | |
display: block; | |
font-size: 0; | |
text-align: start; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)drawRect:(CGRect)rect { | |
// CGRect bounds = [self bounds]; | |
CGContextRef ref = UIGraphicsGetCurrentContext(); | |
CGContextSetLineWidth(ref, 1.0); | |
CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB(); | |
CGFloat components[] = {0.4, 0.4, 0.4, 1.0}; | |
CGColorRef color = CGColorCreate(colorspace, components); | |
CGContextSetStrokeColorWithColor(ref, color); | |
CGContextMoveToPoint(ref, 111, 5); | |
CGContextAddLineToPoint(ref, 282, 5); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Clipping Test | |
*/ | |
body { | |
background-color:blue; | |
} | |
img { | |
background-color:red; | |
position: absolute; | |
top:30px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Column/Background Bug Test | |
*/ | |
ul { | |
-moz-column-count: 2; | |
-moz-column-gap: 5px; | |
-webkit-column-count: 2; | |
-webkit-column-gap: 5px; | |
column-count: 2; | |
column-gap: 5px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Column/Background Bug Test | |
*/ | |
ul { | |
-moz-column-count: 2; | |
-moz-column-gap: 5px; | |
-webkit-column-count: 2; | |
-webkit-column-gap: 5px; | |
column-count: 2; | |
column-gap: 5px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Fixed/Flowed Demo | |
*/ | |
body { | |
box-sizing:border-box; | |
background:green; | |
} | |
.container { | |
width:100% | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body { | |
box-sizing:border-box; | |
background:green; | |
} | |
.container { | |
width:100% | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Checkbox Slider | |
*/ | |
input[type=checkbox] { | |
visibility: hidden; | |
} | |
.form_slider { | |
position: relative; | |
width: 33px; | |
height: 9px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Checkbox Slider | |
*/ | |
input[type=checkbox] { | |
visibility: hidden; | |
} | |
.form_slider { | |
position: relative; | |
width: 33px; | |
height: 9px; |
NewerOlder