Craig100
02/22/2025, 2:38 PM"BlockGrid": {
          "EditorStylesheets": [
            "/css/main.css"
          ]
        }Craig100
02/22/2025, 2:47 PMDean Leigh
02/22/2025, 5:37 PMCraig100
02/22/2025, 6:49 PMrickbutterfield
02/22/2025, 7:39 PMrickbutterfield
02/23/2025, 10:57 AMCraig100
02/23/2025, 11:03 AMCraig100
02/23/2025, 11:03 AMCraig100
02/23/2025, 11:04 AMCraig100
02/23/2025, 11:04 AMrickbutterfield
02/23/2025, 11:05 AMDean Leigh
02/24/2025, 6:36 AMMike Chambers
02/24/2025, 8:39 AMcsharp
/**
@ngdoc directive
@name umbraco.directives.directive:smIncludeCss
@restrict E
@scope
@description
Use this directive to include a css in the shadow dom.
<h3>Markup example</h3>
<pre>
    <sm-include-css css="/styles/bootstrap-grid.min.css"></sm-include-css>
</pre>
@param {string} css (<code>attribute</code>): This parameter defines the css file to import.
**/
(function () {
    'use strict';
    function smIncludeCssController() {
        let vm = this;
        vm.$onInit = function () {
            vm.text = `@import '${vm.css}?umb__rnd=${Umbraco.Sys.ServerVariables.application.cacheBuster}'`;
        }
    }
    
    let component = {
        template: `<style ng-bind="vm.text"></style>`,
        bindings: {
            css: "@",
        },
        controllerAs: 'vm',
        controller: smIncludeCssController
    };
    angular.module('umbraco.directives').component('smIncludeCss', component);
})();Craig100
02/24/2025, 1:10 PMDean Leigh
02/24/2025, 1:20 PMDean Leigh
02/24/2025, 4:28 PMcss
body, :host {
    @include rem-fallback(font-size, 1);
    color: $grey-darkest;
    font-family: $font-03;
    font-weight: 400;
    line-height: 1.5;
}Mike Chambers
02/24/2025, 7:18 PMCraig100
02/24/2025, 8:19 PM@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
    @font-face {
        font-display: swap;
        font-family: Montserrat;
        src: url('/fonts/montserrat/montserrat-v15-latin-regular.woff2') format('woff2'), url('/fonts/montserrat/montserrat-v15-latin-italic.woff2') format('woff2'), url('/fonts/montserrat/montserrat-v15-latin-200.woff2') format('woff2'), url('/fonts/montserrat/montserrat-v15-latin-200italic.woff2') format('woff2'), url('/fonts/montserrat/montserrat-v15-latin-700.woff2') format('woff2'), url('/fonts/montserrat/montserrat-v15-latin-700italic.woff2') format('woff2');
    }
}Dean Leigh
02/24/2025, 8:22 PMCraig100
02/24/2025, 10:04 PMhtml, :host {
    font-family: Montserrat;
    font-family: Museo;
    font-family: Lora;
    font-family: Heebo;
}body, :host {
    font-family: Montserrat, Museo, Lora, Heebo;
}Dean Leigh
02/24/2025, 10:20 PMCraig100
02/25/2025, 12:08 AMCraig100
02/25/2025, 12:09 AMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by