themes

media query to detect Firefox's default theme

家住魔仙堡 提交于 2019-12-13 05:24:42
问题 Is there any media query to detect if user is using Firefox's default theme I have tried @media (-moz-windows-default-theme: 1) {...} but it is also triggered when I was on a custom theme (e.g. FD deep dark) The aim is to change some colors on the UI, but they don't look good on dark themes 回答1: You're using it incorrectly, here's the right way to use it : @media (-moz-windows-default-theme) {...} 来源: https://stackoverflow.com/questions/20303599/media-query-to-detect-firefoxs-default-theme

Open wordpress post in a different page

你说的曾经没有我的故事 提交于 2019-12-13 04:46:57
问题 I have two separate pages showing a list of different categories linking to the full post in wordpress. These both currently open on single.php in my theme but The categories need to be styled differently on each page. I have created the template page but do not know how to open posts on another page other than single.php to simplify: how do I open posts on another version of single.php the code I have that opens the full posts are: <?php // PAGE LINK/TITLE if (is_page()) { $cat=get_cat_ID(

Error when creating Angular 2 custom theme: Argument `$map` of `map-get($map, $key)` must be a map

ⅰ亾dé卋堺 提交于 2019-12-13 04:42:24
问题 I am trying to create my own custom themes in Angular 2 but I keep getting an error. I have tried installing and reinstalling webpack and rebuilding some other modules but nothing has helped. ERROR in ./src/app/themes.scss Module build failed (from ./node_modules/sass-loader/lib/loader.js): undefined ^ Argument `$map` of `map-get($map, $key)` must be a map in C:\Users\Administrator\Dev\MONEY-SAVING\node_modules\@angular\material\_theming.scss (line 1372, column 16) I am hoping to successfully

Spinner Button without radio button

♀尐吖头ヾ 提交于 2019-12-13 04:30:32
问题 How to remove Radio button from spinner BUTTON, using only Themes.xml? I can remove it after applying an other style, but I can't to remove this radio button from Themes.xml by default. <style name="My.Theme.Spinner" parent="android:Widget.Spinner"> <item name="android:background">@drawable/spinner_bg</item> <item name="android:clickable">true</item> <item name="android:spinnerMode">dialog</item> <item name="android:checkedButton">@null</item> <item name="android:checkable">false</item> <

CakePHP theme resources return error

大兔子大兔子 提交于 2019-12-13 03:39:09
问题 I've never had problems with CakePHP's theming system in the past, but now, errors galore. My main issue is that all theme resources (those in /app/views/themed/MyTheme/webroot/*) fail to load. I've set up a custom AppController in /app to set the theme. var $view = "Theme"; var $theme = "MyTheme"; When I go to any page, I can see that it's utilizing my theme's default.ctp layout and the HTML is fine. Any and all page resources, CSS, JavaScript, images, anything in the theme webroot, fails to

wordpress: flat theme, change banner size

我与影子孤独终老i 提交于 2019-12-13 03:35:00
问题 I am setting up a blog with a new flat theme. I haven't used these before so please excuse me if I don't explain myself well. This theme, Cordillera, comes with a full screen banner which has text layered over it. The look is great but I'd really like to be able to either a) be able to set the banner size myself or b) have it automatically adjust the container height to the image uploaded. Both being smaller than full screen, which would pull up the content below it. Not having used this type

How to link an URL inside the them from the Diazo rules file?

大兔子大兔子 提交于 2019-12-13 02:15:39
问题 If an URL to a image is set in a HTML template, then the URL is updated to reference files inside the theme folder. For example, <img src="image.png" /> is replaced by: <img src="http://localhost:8080/mysite/++theme++mytheme-theme/image.png" /> However, if I write following Diazo rule: <replace css:content="#some-class"> <div id="#some-class"><img src="image.png" /></div> </replace> the URL of the image is not update. How can I write Diazo rules where the image gets correctly referred. I want

Simple style change does not apply

孤街醉人 提交于 2019-12-13 01:28:54
问题 I've followed the first part of this guide by: Creating and applying my own theme. Using the web/css/source/_extend.less that's on the guide. Deleting the mentioned directories. Refreshing the page. But the button style did not change. What am I missing? 回答1: Login to admin, go to System -> Cache Management in the bottom of the page you could see the three flush cache button option. click the JS/css and static flush cache button then clear the cache of your browser also. load the page it will

How to make Eclipse color settings permanent?

无人久伴 提交于 2019-12-13 01:26:05
问题 I installed Eclipse Luna. I like what the built-in Dark theme does to all the views surrounding the actual text editor. However, I like to use my own color theme Solarized Dark on the editor and furthermore I'm changing a few highlight-box colors in the Editor Annotation settings. I'm able to make all of those configurations just fine. It takes a few minutes however and every time I start Eclipse again all my color settings are back to the default Eclipse Dark Theme, including text editors,

How to change current line color in debugging mode?

守給你的承諾、 提交于 2019-12-13 01:15:20
问题 I'm trying to change the color of a current line in a debugging mode. So, I know how to change color in general, but don't know what is the name of the parameter. for example, to change a selected line we need "editor.lineHighlightBackground" "workbench.colorCustomizations": { "[Base16 Dark Oceanic Next]": { "editor.lineHighlightBackground": "#ff0000", } } but, how to change the line color which appears during debugging? 回答1: Write the customization without "[Base16 Dark Oceanic Next]" as :