Spotify Preview API CSS Resources - css

I can't see a reference to the api.css, adam.css and eve.css files in the Preview API, nor can I find any reference to the buttons and icons they would like the app to use.
Is there a page I'm missing?
I've tried:
Here and here
(incompatible with Preview API)
There is also this but it doesn't provide much help (other than help to decode the horrific JSDoc site)

The monolithic api.css file have been split into separated stylesheets, each of them corresponding to a certain views module. Thus, you only need to include the CSS files for the modules you use.
Right now, these are the files:
$views/css/list.css
$views/css/image.css
$views/css/buttons.css
$views/css/throbber.css
$views/css/popup.css
You can see them in action in the Views tutorial preview, and some of them are also used in the Apps Tutorial on GitHub.

Related

Xamarin.Forms: Organize images in subfolders

Is it possible to organize my images in subfolders? Something like this example.
Android Project:
·Drawable
·navbarIcons
-user.png
-stats.png
·statsImages
-goals.png
-assists.png
iOS Project:
·Resources
·navbarIcons
-user.png
-stats.png
·statsImages
-goals.png
-assists.png
Or is it mandatory to let them on the Drawable/Resources folder?
Its definitely possible to create subfolders on iOS. Also ensure that your casing is correct because they are case-sensitive and that your Build Actions are set up correctly.
UPDATE:
As you can see its possible to add them in subfolders. Don't forget to add your images in the correct sizes such as 2x and 3x for iOS as I did below.
UPDATE 2:
Another thing you could do is put the images in your Shared PCL project and go the embedded images route. I believe this route doesn't give you as much flexibility when it comes to DPIs though:
https://developer.xamarin.com/guides/xamarin-forms/user-interface/images/#Embedded_Images

How to provide an icon for a dexterity type with Plone 5

icon_expr is gone.
There is an related issue https://github.com/plone/Products.CMFPlone/issues/1236
concerning the problem but only for control-panel icons.
What is the appropriate way to add a icon to a dexterity content type in plone 5?
Any pointer welcome
Volker
Unluckily the Plone 5 way is only through CSS (with a background image for example) and register it in the new resource registry.
One way I tested is to re-use Fontello, like Barceloneta is doing but is not really simple because you must manually modify the generated CSS to prevent you new CSS to destroy other global rules.
An example is here: https://github.com/RedTurtle/TurtledGazette/tree/master/Products/PloneGazette/browser/static (it's not even Dexterity or Archetypes, but this is not important).
Note. I don't really understand this run to CSS and iconfont. It's a kind of over-optimization:
old school images can still be cached
background images are not really accessible as real images provided also an "alt" for blind people, that warn about the content type.
I don't like current situation too much... it's OK while you are developing a theme but is a nightmare for add-ons developers.
Beneath the update of an actual fontello font, you can limit yourself to enhance the icon configuration.
From the Products.CMFPlone package you can get the current icon font config file "config.json"
/Products/CMFPlone/static/fonts/config.json
To review the content of the file visually, go to the fontello.com website and visit the menu under the "wrench" icon.
Reset all icon selections and settings you may have done before.
Unselect glyphs
Reset all changes
Use Import to load the config.json file from CMFPlone.
Review the icons, names, codes and shapes
Look at the source code of config.json and locate icons not referencing a font but containing plain svg path information.
You will figure out that even glyphs can contain multiple path elements and holes as well.
Try to overload just the config.json file in your package by appending your custom icon as plain svg in the json and choose a non conflicting unicode char code. I am still working on documenting this in detail.
Source: I found a hint to this by Victor Fernandez de Alba mentioning this method in his talk [2] (see transscript [1]) during Plone Conf Bucharest:
http://maurits.vanrees.org/weblog/archive/2015/10/victor-fernandez-de-alba-plone-5-theming
http://www.slideshare.net/sneridagh/plone-5-theming-53980481 Slide 12

Jquery conflict happening with sliders in ASPX page

I have the following Js files referenced in my ASP.NET project. I would like to know if there is any conflict (or duplication of JS files). Also should I upgrade any of the JS files or should I map them directly to googleapis? Please suggest as I am suspecting some conflict here.
Reason I am asking this question is because I have an ASPX page that doesn't render slider but in HTML it renders fine. I tested that using jsFiddler.
jquery151.min.js
jquery-ui.min.js
global.js
jquery.ui.all.css
jquery.ui.core.js
jquery.ui.widget.js
jquery.ui.mouse.js
jquery.ui.slider.js
slides.min.jquery.js
Here you can find the complete List of google hosted libraries and you can update them accordingly
https://developers.google.com/speed/libraries/devguide#jquery

Adding image to project description in google code

I want to update a background image in google code projects.I searched their wiki, it talks about pointing image to an external world.Is there anyway we can upload the image to google code and provide a link?
I got the solution.First you need to upload the image to 'Download' area.After that, give the image url like this.
<img src="http://yourgoogleproject.googlecode.com/files/name of your image.PNG" alt="Logo"/>
You have to paste the above code inside apostrophe(') and end with apostrophe and can paste this in project description of your project summary tab.(I have just added here, in my case)
The file uploaded will go under 'files' folder of your project automatically.
This answer is no longer correct. Google Code removed the downloads option in May 2013, due to misuse. You can, as they suggest, move your files to Google Drive and link to them from there, which is fine for project downloads, but for items such as images in wiki pages or the project home page, I recommend checking the images into your source repository and linking to them. For example, ig you use a mercurial repository and your files are checked into docs/images, then:
http://yourproject.googlecode.com/hg/yourproject/docs/images/logo.png
should work.

Drupal - customizing $scripts output

Basically the issue im having is I have a custom theme, and I need to use $scripts to call the analytics code at the top (the link tracking settings) however this also loads loads of other cr*p js files I dont need or want.
All I want is the analytics stuff the module places in $scripts.
So can I somehow either:
A) Load only the analytics code via $scripts (.info file?)
B) Create a new region in .info file (e.g. $analytics) and call that via the template. But then how do I get the analytics code to output to this new region instead of $scripts?
Any help would be most appreciated.
A.
I would be wary of not outputting $scripts. The files that are output are needed for your other modules to work properly. If you want to reduce the scripts which are output then turn off modules that you don't need.
I agree that disabling the $scripts variable (or cleaning it out) will have some "undesired results". I can think of about half a dozen modules that I use on every build that have required js files.
Maybe you should look into the Google Analytic Module which uses the $footer variable instead of the $scripts.
http://drupal.org/project/google_analytics
I also use this module on all my builds as it provides some very easy integration of Drupal into GA including downloads, user roles, etc. (out of the box)
p.s.
Remember Drupal has a pretty good Performance settings that allow for the cache as well as consolidation css/js.
My final builds have 1 line of markup that calls ALL of my css for that page and one line that does the same for my js. It's been shown that consolidating your asset files into one large file rather then many small ones is a huge performance saver, more so then the size of the end file itself.

Resources