[squeak-dev] Stylesheets for morphic?
Igor Stasenko
siguctua at gmail.com
Thu Jun 4 18:21:26 UTC 2009
I found that to write a formal 'css' specs in smalltalk could look
very similar to w3c css syntax:
.bar {
display: inline;
border-left: 1px solid #d0cfd5;
width: 1px;
margin: 0px 5px;
font-size: 80%;
vertical-align: baseline;
}
could be written in smalltalk as:
(styles addClass: #bar)
display: #inline;
borderLeft: (BorderStyle width: 1px type: #solid color: #d0cfd5);
width: 1 px;
margin: 0 px @ 5 px;
fontSize: 80 p;
verticalAlign: #baseline .
I really thinking that what is good in css/html couple is the techique
for dividing the actual markup and its visual appearance.
Maybe someday we could have similar stuff in morphic / other smalltalk
framework.
--
Best regards,
Igor Stasenko AKA sig.
More information about the Squeak-dev
mailing list
|