diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-02-15 15:04:44 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-02-15 15:04:44 +0000 |
| commit | 52c9149663fd77925e3dd9a4e9d164f6132dd418 (patch) | |
| tree | 9458a319996ba4e188bc4c72d302e2b21dd4df22 /root/blog | |
| parent | realities default to clientside (diff) | |
| download | mmm-52c9149663fd77925e3dd9a4e9d164f6132dd418.tar.gz mmm-52c9149663fd77925e3dd9a4e9d164f6132dd418.zip | |
link_interactive for hybrid pages
Diffstat (limited to 'root/blog')
| -rw-r--r-- | root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon b/root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon index 419eef0..0219af6 100644 --- a/root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon +++ b/root/blog/aspect_ratios/interactive/_base: text$moonscript -> table.moon @@ -1,22 +1,27 @@ -import div from require 'mmm.dom' +import div, a from require 'mmm.dom' +import interactive_link from (require 'mmm.mmmfs.util') require 'mmm.dom' if MODE ~= 'CLIENT' class Dummy render: => - div 'Interactive Example not available with Server-Side rendering', style: - position: 'relative' - resize: 'horizontal' - overflow: 'hidden' - - width: '480px' - height: '270px' - 'min-width': '270px' - 'max-width': '100%' - - margin: 'auto' - padding: '10px' - boxSizing: 'border-box' - background: 'var(--gray-bright)' + div { + style: + position: 'relative' + resize: 'horizontal' + overflow: 'hidden' + + width: '480px' + height: '270px' + 'min-width': '270px' + 'max-width': '100%' + + margin: 'auto' + padding: '10px' + boxSizing: 'border-box' + background: 'var(--gray-bright)' + + interactive_link '(click here for the interactive version of this article)' + } return { UIDemo: Dummy |
