I'm looking for alternative of default HTML font picker - it should look in angular material way.
Having no problem with finding good alternative for color-picker here: https://github.com/brianpkelley/md-color-picker.
Related
Is it possible to customise say the colour of the button on the snipcart checkout? Or the font family?
I looked at some tutorials but they seem to be for an old version
The same approaches to customize the cart can be used for the V3 and more.
In your case, you can change colors and fonts by overriding the CSS.
To do this, add a separate CSS file after the one provided by Snipcart with your own CSS rules targeting the same selectors.
I am an Android developer trying to learn Dart-Polymer(I am also fairly new to HTML dev). I tried the custom card example in the polymer tutorial, and as an extension I want to display multiple cards in a rectangular grid. I see there are horizontal and vertical layouts in Polymer, and I was wondering if Polymer has something like GridView in Android. Can someone suggest how to proceed ?
The grid on left is what I want to achieve :
The core-card is on the right. I can see that element in the designer (please see the panel in right under core). But I am unable to find the core-card in Polymer libraries. That's why I am going with custom card (from the tutorial mentioned above). I would like to use core-card if available.
After posting this question, I found out about core-layout-grid - I am not sure how to use it, and if that's what I need.
Polymer has excellent handling to ease the use of CSS FlexBox. Using the various layout,horizontal,vertical, wrap, and flex attributes it is very easy to make very flexible and responsive layouts, including grids.
You can read more about the Layout attributes and their uses, including various alignment attributes from the Polymer Layout Attributes page. In particular look at the Wrapping section as it helps to create responsive grids that will appropriately adjust based on the width of the display.
I have a div with a grid inside and I want to center it horizontally but so far I haven't found any solution to this problem yet.
I found a couple of solutions but they are all using CSS is there any other way to do this with out using css?just like when centering text you just put text-aign:center?
honestly? no way imo. text-align=center; is css by the way.
Take a look at this page and start learning css, its easy and fun!
http://webdesign.about.com/od/beginningcss/a/aa012207.htm
I'm working on an iOS app in which I need to implement a basic text view with these requirements:
Rich text
Font emphasis (bold, italics).
Inline images for hyperlink-like actions.
Scrolling
Getting and setting the scroll offset (for remembering the previous scroll position).
Text selection
Getting the selected text character range.
Scrolling the view when selecting text, if needed.
I believe I could achieve this with UIWebView but the problem with this is that it provides very little control and is somewhat slow and shows a blank screen while loading. I was wondering if this could be achieved with Core Text but regarding the text selection I'm not sure. I'm hoping to achieve as iOS-native behaviour as possible.
What I'd need is pretty much like Instapaper's text view.
OmniGroup have done something like this by creating a text editor much like UITextView which draws the text using Core Text but also has all the editing features of UITextView as well as Rich text features from Core Text.
You can find it here.
There are some answers about this in StackOverflow, for example: Core text tutorial
However the best tutorial I ever read about Core Text in iOS is not listed in any answer I've found: How to create a simple magazine app with core text
Please notice that CoreText is only available for iOS 3.2 or superior.
I'm looking for an UILabel with the following capabilities:
auto resize
support for breaklines
simple rich text formatting (bold,
italic, hyperlinks?)
I know I can do it myself, but I'd guess there should be already an open-source project for something like this, right?
I would recommend using TTStyledLabel/TTStyledTextLabel from the Three20 library. It provides the desired functionally and would save you the time of writing your own.