mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
webterm: implement underline and blink styles
This commit is contained in:
parent
ee55f34a72
commit
e3dba290c9
@ -15,8 +15,8 @@ export default React.memo(({line}) => {
|
|||||||
switch (deco) {
|
switch (deco) {
|
||||||
case null: return prop;
|
case null: return prop;
|
||||||
case 'br': return {bold: true, ...prop};
|
case 'br': return {bold: true, ...prop};
|
||||||
case 'bl': return {blink: true, ...prop}; //TODO
|
case 'bl': return {className: 'blink', ...prop};
|
||||||
case 'un': return {textDecoration: 'underline', ...prop}; //TODO fixme
|
case 'un': return {style: {textDecoration: 'underline'}, ...prop};
|
||||||
default: console.log('weird deco', deco); return prop;
|
default: console.log('weird deco', deco); return prop;
|
||||||
}
|
}
|
||||||
}, {});
|
}, {});
|
||||||
|
@ -3,6 +3,18 @@ input#term {
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.blink {
|
||||||
|
animation: 4s ease-in-out infinite opacity_blink;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes opacity_blink {
|
||||||
|
0% { opacity: 0; }
|
||||||
|
10% { opacity: 1; }
|
||||||
|
80% { opacity: 1; }
|
||||||
|
90% { opacity: 0; }
|
||||||
|
100% { opacity: 0; }
|
||||||
|
}
|
||||||
|
|
||||||
/* responsive */
|
/* responsive */
|
||||||
@media all and (max-width: 34.375em) {
|
@media all and (max-width: 34.375em) {
|
||||||
.h-100-m40-s {
|
.h-100-m40-s {
|
||||||
|
Loading…
Reference in New Issue
Block a user