Photo/style.css
/* block */
.Photo {}
/* element */
.Photo__img {}
/* modifier */
.Photo--large {}Photo/style.css
/* block */
.Photo {}
/* element */
.Photo__img {}
/* modifier */
.Photo--large {}| <!--- Force Image Resave for All Images ---> | |
| <cfset application.serviceFactory.getBean('fileManager').rebuildImageCache(siteid='YOURSITEID')> | |
| <!--- or to just reset a specific image size you can use ---> | |
| <cfset application.serviceFactory.getBean('fileManager').rebuildImageCache(siteid='YOURSITEID' ,size='YOURSIZE')> |
| user nginx; | |
| worker_processes 2; | |
| error_log /var/log/nginx/error.log error; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
Disclaimer: I'm not the original author of this sheet, but can't recall where I found it. If you know the author, please let me know so I give the attribution.
The original author seems to be Charles Edge, here's the original content, as pointed out by @percisely.
Note: Since this seems to be helpful to some people, I formatted it to improve readability of the original. Also, note that this is from 2016, many things may have changed, and I don't use macOS anymore, so I probably can't help in case of questions, but maybe someone else can.
After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and s
| // Mixins | |
| .has(@element; @content) { | |
| &__@{element} { | |
| @content(); | |
| } | |
| } | |
| .variant(@modifier; @content) { | |
| &--@{modifier} { | |
| @content(); |
| <cfset siteID = "en"> | |
| <cfset remoteSiteID = "nl"> | |
| <cfset $ = application.serviceFactory.getBean('$').init(siteID)> | |
| <cfset pluginConfig = $.getBean('pluginManager').getConfig('MuraTranslations')> | |
| <cfset translationManager = createObject("component", "plugins.#pluginConfig.getDirectory()#.cfcs.translationManager").init($.getBean('configBean'), pluginConfig)> | |
| <cfif not structKeyExists(session, "rs")> | |
| <cfquery name="rs"> | |
| select distinct contentID, siteID from tcontentrelated where siteID = <cfqueryparam cfsqltype="cf_sql_varchar" value="#siteID#"> | |
| </cfquery> |
| /** | |
| * Fix for vw, vh, vmin, vmax on iOS 7. | |
| * http://caniuse.com/#feat=viewport-units | |
| * | |
| * This fix works by replacing viewport units with px values on known screen sizes. | |
| * | |
| * iPhone 6 and 6 Plus cannot run iOS 7, so are not targeted by this fix. | |
| * Target devices running iOS 8+ will incidentally execute the media query, | |
| * but this will still produce the expected result; so this is not a problem. |
| HTML: | |
| <header id="js-cover" class="cover"> | |
| <!-- Optionally specify image width stoppoints to reduce the maximum possible no of transforms per image --> | |
| <!-- The appropriate image resolution will automatically be loaded --> | |
| <img | |
| data-stoppoints="480,768,1200" | |
| data-src="http://res.cloudinary.com/<your account name>/image/fetch/w_auto,dpr_auto/http://<your full img url>" | |
| class="cld-responsive cover-img" id="js-cover-img"> |
| <!--- | |
| A brief example on how to use the 'CustomUI' option when creating a class extension in Mura CMS. | |
| This example assumes you have an extended attribute called 'Page/Book'. | |
| It also assumes you have an attribute set using the 'CustomUI' container/tab assignment. | |
| Any extended attributes you assign to the attribute set, you are responsible for collecting | |
| that data using your own form fields. Make sure the 'name' and 'id' attributes match the | |
| names you've used when you created the extended attributes! For example, if you have an | |
| extended attribute with a name of 'bookPublisher', make sure you have a form field with an | |
| 'id' and 'name' attribute of 'bookPublisher'. Check your casing too! |