theming

Why does the Cascade for CSS Custom Properties Not Work? [duplicate]

跟風遠走 提交于 2019-12-24 04:53:11
问题 This question already has an answer here : CSS scoped custom property ignored when used to calculate variable in outer scope (1 answer) Closed last year . I have a full working CodePen here showing the problem. I'm using CSS custom properties like so: :root { --global-primary-colour-hue: 211; --global-primary-colour-saturation: 100%; --global-primary-colour-lightness: 50%; --global-primary-colour-opacity: 1; --global-primary-colour: hsla( var(--global-primary-colour-hue), var(--global-primary

Change lookup rule for views

假如想象 提交于 2019-12-18 09:22:36
问题 I have an application that gets rolled out in multiple countries. There will be a setting in the web.config file, that defines the country. The country will not be in the URL. Some of the the views change depending on the country. My first attempt is to use a folder inside the views folder that contains views, if they differ from the default view: Default /questions/ask.aspx Spain /questions/ESP/ask.aspx If there is no view in the country-folder the default view is used. Is there a way to

Rails: Nested views or partials or..?

我是研究僧i 提交于 2019-12-13 20:07:43
问题 I new to Ruby on Rails, and I am coming from Drupal/PHP background. I am trying to do something simple. A "Static" controller for some pages like about us, disclaimer etc. and a "Video" controller for videos. The whole application has same look. I am trying to figure out how I can avoid duplicating views. In drupal the theming goes like this: html.tpl.php (renders page.tpl.php) - page.tpl.php (renders multiple block.tpl.php) - block.tpl.php (renders more nested tpls or some html generated by

Symfony 2 Forms with Twig: add form variable to existing types

[亡魂溺海] 提交于 2019-12-12 01:44:50
问题 I need my symfony2/twig forms to adhere to a certain condition: All form rows must look similar to this: {% block form_row %} <div class="CONSTANT_CLASS class_based_on_field_type class_based_on_error"> {{ form_label(form) }} {{ form_widget(form) }} ... </div> {% endblock form_row %} Notice that I need to get the field type within the form_row block. Alas, the field type is only defined at the widget level. I definitely need a way to let my form_row know what type of field it is dealing with.

How to override template “folder_full_view_item.pt”?

只谈情不闲聊 提交于 2019-12-11 04:15:01
问题 This question is a reformulation of this question which had evolved in a confusing way. Please refer to this question if you search some in depth details or are interested in workarounds and alternative solutions. This question is about the call to template folder_full_view_item.pt in folder_full_view.pt , not about other templates in general! Please avoid workarounds like skin layers, editskinswitcher, etc. I don't want to solve a particular use case here. What I want is to really understand

Accessing previous theme variables in createMuiTheme

谁说我不能喝 提交于 2019-12-08 16:12:06
问题 Running Material UI 1.0.0-beta.24 I'm setting a new theme using createMuiTheme : import {createMuiTheme} from 'material-ui/styles'; const theme = createMuiTheme({ typography: { fontSize: 16 } }); export default theme; How can I access the theme I'm overriding directly here ? I'd like to do this, which is not working : import {createMuiTheme} from 'material-ui/styles'; const theme = createMuiTheme({ typography: { fontSize: theme.typography.fontSize + 2 } }); export default theme; 回答1: You'd

compass/sass remote themeing via sftp/scp with alternate port

拟墨画扇 提交于 2019-12-08 05:06:27
问题 I am trying to get compass/sass to watch changes on my local computer and reflect those changes remotely using a custom config.rb script. net::sftp works but my server requires a custom ssh port. I couldn't find any mods to make sftp work with an alternate port so im trying net:scp now, the problem is I dont know the proper command structure to upload using net:scp and wanted to see if someone can help me. Here is my code: # Require any additional compass plugins here. require 'net/ssh'

theme switching, template and css file layout on a django site

為{幸葍}努か 提交于 2019-12-07 19:54:48
问题 In my django site I want to offer several themes for our best clients and for the boss. So I quickly created the following. - I am glad i got along to present it but there are a few dirty hacks I want to eliminate with nice solutions I ask you for. Here's my hack base.html says (take care - ugly!) {% ifequal theme "0" %} {% include "base_d0.html" %} {% endifequal %} {% ifequal theme "1" %} {% include "base_d1.html" %} {% endifequal %} {% ifequal theme "2" %} {% include "base_d2.html" %} {%

compass/sass remote themeing via sftp/scp with alternate port

房东的猫 提交于 2019-12-07 10:57:32
I am trying to get compass/sass to watch changes on my local computer and reflect those changes remotely using a custom config.rb script. net::sftp works but my server requires a custom ssh port. I couldn't find any mods to make sftp work with an alternate port so im trying net:scp now, the problem is I dont know the proper command structure to upload using net:scp and wanted to see if someone can help me. Here is my code: # Require any additional compass plugins here. require 'net/ssh' require 'net/scp' # SFTP Connection Details - Does not support alternate ports os SSHKeys, but could with

theme switching, template and css file layout on a django site

 ̄綄美尐妖づ 提交于 2019-12-06 10:44:35
In my django site I want to offer several themes for our best clients and for the boss. So I quickly created the following. - I am glad i got along to present it but there are a few dirty hacks I want to eliminate with nice solutions I ask you for. Here's my hack base.html says (take care - ugly!) {% ifequal theme "0" %} {% include "base_d0.html" %} {% endifequal %} {% ifequal theme "1" %} {% include "base_d1.html" %} {% endifequal %} {% ifequal theme "2" %} {% include "base_d2.html" %} {% endifequal %} Then i kept in MEDIA dir the subdirs for all common css and js and created subdirs static/