POST
|
#csstips Hello Liz, Since you are using the btn-primary class on your button, we're going to automatically apply your theme's link to any primary or default button classes. You can use inline CSS to change the styling of the buttons to more closely resemble our homepage if you wish by adding the btn-lg class after the btn class and using an embedded style tag or inline style tag to change the button's styling. With embedded styles you'd do it something like this: <style>
.btn-mine {
background-color: #000;
color: #fff;
}
.btn-mine:hover,
.btn-mine:focus {
background-color: #ccc;
color: #000;
}
</style>
<a href="#" class="btn btn-mine btn-lg">Learn More</a> Or you could style it inline like this: <a href="#" class="btn btn-lg" style="background-color: #000; color: #fff">Learn More</a>
... View more
07-24-2017
09:06 AM
|
2
|
1
|
1427
|
POST
|
Yup. I documented a method for you over there: https://community.esri.com/thread/194073-fixed-header-disables-html-edit-ability?q=edit%20custom%20header#comment-702930
... View more
07-24-2017
08:27 AM
|
0
|
0
|
347
|
POST
|
Hi Vanessa, Yes. There is a way to undo this without recreating the site by temporarily modifying the HTML code from Chrome's Dev Tools. 1) Open the Layout Editor while in Chrome. 2) Right click the navigation bar. 3) Select Inspect from dropdown menu. 4) In the Chrome Dev Tools panel, look for navbar-fixed-top and double-click on the name. 5) When navbar-fixed-top becomes an input, delete navbar-fixed-top and type navbar-default 6) Press enter. This will make the gear show back up in the Layout Builder preview. 7) Click the navbar gear, change your header code to remove navbar-fixed-top and add navbar-default back. 😎 Save.
... View more
07-24-2017
07:50 AM
|
4
|
3
|
773
|
DOC
|
Update 08/15/2019: Since the original date of this post, we've made improvements to our image card and row card that make achieving a split look even easier and which works better on smaller devices. To achieve this effect, you'll want to select the Wide layout option on your Row Card, and then add an Image Card and a Text Card side-by-side. Under Options on the Image Card, toggle on Scale to Fit, which allows the image to proportionately resize and fill whatever space is available. This may mean that some of the image will be hidden off screen on smaller devices, but you can use the Focal Point control to indicate what part of the image you want to stay predominantly visible during the resizing. On the Text Card side, you may need to hit enter a couple times to vertically align your text, but the Text Card uses a transparent background and will rely on the background-color and text-color that you set in the Row Card. Note: You will see some padding on the cards when you're in edit mode. This is a result of needing room for our hover controls. It will not be visible in live mode and you will have the edge-to-edge effect after you save and view your site. -------- While designing Hub sites, you may find that you'd like to have images that bleed to the edges of your site. Unfortunately, in order to do this you would need to have a fluid-width container as the Bootstrap 3 grid depends on a set of nested elements: row, container, columns. Our app is based on a fixed-width container, which prevents columns and their content from taking up 100% of available screen space, and keeps your content from resizing past a certain maximum width. We've found this works best for the majority of sites. However, the rows which are outside of the container, are set to be fluid. This is what presently allows 100% width image and color backgrounds on rows. We're going to take advantage of that to achieve a split bleed look. Steps In Photoshop or other image editing software, create a canvas 1400 x 450 pixels. (Pixlr Editor is a free browser image editor that has similar functionality to the basics of Photoshop - it does require Flash to run.) Fill canvas with desired background color. Import photo to canvas and resize it to 50% of canvas width. Save canvas as JPEG. (Save to desktop if using Pixlr.) Upload image to web hosting somewhere to get URL. In Site Editor > Layout Builder, add a row card. In row settings, paste image URL in for background image. Set row text color. Drag two text cards into row, side by side. In text card overlaying image, delete contents, add an empty div and set min-height to maintain a specific row height. <div style="min-height: 350px;"></div> If your image is not decorative, you may want to add an aria-label to the div for web accessibility, since background images are not conveyed to assistive technologies like screen readers and do not support the alt text attribute. <div style="min-height: 350px;" aria-label="city sunrise"></div> In text card overlaying solid color, type text. <h1 style="display: inline-block; background-color: #2d2d2d; padding: 10px 20px;">
We are Making a Difference
</h1>
<p style="background-color: #2d2d2d; padding: 10px 20px;">
Welcome to our city.
</p>
While it is not necessary to add the style tags on these text elements, the reason I did so was because at some screen sizes, I observed the text briefly overlaying the image portion and I wanted the text to stay legible even in those cases.
... View more
06-30-2017
07:55 AM
|
4
|
0
|
4102
|
POST
|
Hello, Additionally, if you don't mind using a bit of CSS, you can change your category link color via embedded <style></style> tags that you can add to any text card in your homepage layout. This would allow you to specifically target the category link color, while maintaining your theme link color for all other links. The text card containing the CSS does not have to be in the same row as the category icons. You can append the CSS to any text card you might already have added to your homepage. Your CSS would look like this: <style>
.category-panel a,
.category-panel a:hover,
.category-panel a:focus {
color: #003580;
}
</style> If you want the category icon to be a different color than the link, you'd still want to set that per icon using the color picker on the Category Settings, which is what I did in the image below. I set the icon to green, and then used my CSS to change the link to blue. -Klara
... View more
06-30-2017
05:26 AM
|
2
|
0
|
2048
|
POST
|
Hi Patrick, We recently re-added the button element to allowed tags within our text card, so you should be able to achieve a dropdown menu using the Bootstrap classes from their documentation: http://getbootstrap.com/components/#btn-dropdowns However, I am not sure this will solve your use-case, since in order to use dropdown menus for selections, I think you'd need to know those values and we are not supporting external or inlined Javascript in 2.0. This was because we were seeing too many conflicts between custom scripts and our own Javascript, and these conflicts frequently broke functionality we had built.
... View more
05-25-2017
11:53 AM
|
0
|
0
|
550
|
POST
|
Hello, It should be possible. I just gave it a go, and it worked for me in Chrome, Firefox, and IE11. What browser are you using and is the YouTube video public? Here's what worked for me: 1. Open YouTube 2. Copy the URL for the video from the Embed code snippet they provide. (You only want the URL, any other tags will cause a syntax error.) 3. I pasted that URL in the our iFrame URL input: 4. I changed the height to 600, hit apply, and then saved the site for good measure.
... View more
05-23-2017
07:10 AM
|
0
|
1
|
822
|
DOC
|
Erich's post refers to our 1.9 version sites. If you are trying to change the font on the banner card via embedded styling on a 2.0 site, you might observe some weird behavior on your page, because you are using a generic tag as a selector that we have most likely used elsewhere and your CSS might be overriding our layout CSS. If you are trying to target just the h1 in the banner card, you can use the .jumbotron class in front of your h1: .jumbotron h1 { margin-top: 10px; margin-bottom: 10px; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: 1px; } If you have multiple banner cards on your page though, just be warned this will apply to all of them. Note: This will work for web safe fonts. For 2.0 sites, it is presently not possible to add custom fonts (like Google Fonts), although we do intend to add that functionality in the future.
... View more
05-23-2017
06:53 AM
|
0
|
0
|
1195
|
POST
|
Hi Matt, I am unable to reproduce your issue using the code you provided above as it appears to work on my end. What browser are you using? Also, do you have a site link you could share so I could take a closer look? Or if not, could you post the HTML from your custom footer block here? Thank you, Klara
... View more
05-08-2017
07:10 AM
|
0
|
0
|
346
|
POST
|
Hi Levi, Yes, at the moment, we do not supported the 'navbar-fixed-top' because when it is used in conjunction with a custom header, we've run into issues between knowing the height of the custom header, which is required to set the optional footer, and if set to a height too large, the fixed header will cover the entire 'search bar | My Data' navigation we have on the internal pages of the application. The reason you lose the gear when you set that class is because fixed classes will position themselves on top of everything else. So in reality, the gear is still there, it's just that now you've told the CSS that you want that search bar to always be on top of everything and that's going to be true whether you are in the Layout Editor or the live site. -Klara
... View more
05-05-2017
05:55 AM
|
1
|
5
|
773
|
POST
|
Hi Jaclyn, I'm sorry, my GeoNet notification settings got mixed up and I'm just now seeing this. Could you describe what you were expecting or send a screenshot? I may be able to put in a request to fix our search bar within the banner component, but I don't know that it'd work for any of the search bar customization code snippets in my document as those were provided by others. Thanks, Klara
... View more
04-17-2017
09:37 AM
|
0
|
0
|
253
|
POST
|
Hi Ken, While that is very astute of you to figure out how do global styling in that manner, as you might've determined from my earlier response, it was our intention that homepage aside, styling of the internal pages would be strictly through the theme editor at the moment, and later through a set of sass variables to minimize layout-breaking feature changes. It is a bug that the HTML header block allows the embedded style tags. I would strongly recommend you not use it as it will be fixed in the future and thus will undo any custom CSS on those internal pages. Thank you.
... View more
03-30-2017
12:01 PM
|
0
|
0
|
669
|
POST
|
Thank you! I will add your solution to my tips post.
... View more
03-27-2017
07:17 AM
|
0
|
0
|
395
|
POST
|
Hi Ken, Special characters (eg. ' " < >) do get stripped out of the text card when doing embedded styling there. I've also run into a similar situation when I've tried to do background-image: url(''); within embedded style tags. In my case, I was told to do it inline via style="...". Unfortunately, pseudo-selectors cannot be applied inline and at this time, are not supported in the <style></style> section. I can follow up with my team and see why we strip out some of the aforementioned special characters. However, you said you were trying to do this in the HTML block, correct? We do have a CSS editor for the header block specifically in the sidebar under Header Settings and it does support special characters. It is neither a global CSS editor nor a page CSS editor, but if you were trying to get these styles applied in your header - it should work for that case. I tried the code you provided above and I was able to implement the :after classes within my header. The reason the header CSS is limited to that component and does not cascade is because the header can appear on multiple pages within the app, and we were having issues with some folks doing absolute positioning on a global level, which would break the layout when new features were released.
... View more
03-27-2017
07:15 AM
|
2
|
2
|
669
|
POST
|
Hi Kevin, I'm sorry you ran into that issue. I will have to add that caveat to my document you referenced. Unfortunately, because styling the search bar involves some CSS hacking that is not officially supported, we might not have a solution for that beyond using the default. We do hope to allow toggle options for increasing the size via the settings in the future. As I mentioned in my post, all those search bar examples were implemented by other customers, so I did not verify that they worked cross-browser. I checked just now and I see what you're saying about IE11. For what it's worth, it does work in Edge. Perhaps, others will have an idea how to solve for the older Internet Explorers.
... View more
03-24-2017
01:46 PM
|
0
|
2
|
395
|
Title | Kudos | Posted |
---|---|---|
1 | yesterday | |
1 | 04-18-2024 07:45 AM | |
1 | 09-14-2023 06:37 AM | |
1 | 02-12-2024 02:44 PM | |
1 | 02-21-2024 08:03 AM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|