In Safari, if you have a layout container that's absolutely positioned to take up, at a minimum, its whole container (which isn't unheard of in "appey" internet home page thingies) using CSS like this:
.absolutely| using Newtonsoft.Json; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Collections.Specialized; | |
| using System.Dynamic; | |
| using System.Net; | |
| using System.Text.RegularExpressions; | |
| using Umbraco.Core.Logging; | |
| using Umbraco.Forms.Core; | |
| using Umbraco.Forms.Core.Attributes; |
| using System.Collections.Generic; | |
| using System.Text; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using System.Web.Mvc.Html; | |
| using Umbraco.Core.Logging; | |
| using Umbraco.Core.Models; | |
| namespace Foo | |
| { |
| @inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
| @{ | |
| Layout = "Layout.cshtml"; | |
| } | |
| <main> | |
| <section id="content" class="offers"> | |
| @{ | |
Using @tmcw's csv2geojson to add points from a CSV to a Mapbox GL JS map.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset='utf-8' /> | |
| <title></title> | |
| <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | |
| <script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.0/mapbox-gl.js'></script> | |
| <link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.0/mapbox-gl.css' rel='stylesheet' /> | |
| <style> | |
| body { margin:0; padding:0; } |
| Get all nodes of doctype below level 2 | |
| $ancestorOrSelf/ancestor-or-self::* [@level=2]//*[@isDoc][self::Kategori] | |
| Get all nodes of doctype | |
| //*[@isDoc][self::Kategori] |
| @using Umbraco.Web.Templates | |
| @inherits UmbracoViewPage<Lecoati.LeBlender.Extension.Models.LeBlenderModel> | |
| @foreach (var item in Model.Items) | |
| { | |
| if(item.GetValue<string>("more") != null && item.GetValue<string>("more") != ""){ | |
| <a href="@Umbraco.TypedContent(item.GetValue<string>("more")).Url">Read more</a> | |
| } | |
| } |
| @* Embedded Twitter Feed | |
| * --------------------- | |
| * Create a widget from Twitter.com FIRST - https://twitter.com/settings/widgets | |
| * Embedded Timeline API - https://dev.twitter.com/docs/embedded-timelines | |
| * All of these settings are for the local end. User & Search information | |
| * Should be setup on the actually widget creation page. | |
| * | |
| * | |
| *@ |