com.jwebmp.plugins.bootstrap.options.BSResponsiveEmbeds Maven / Gradle / Ivy
Show all versions of jwebmp-bootstrap Show documentation
/*
* Copyright (C) 2017 Marc Magon
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package com.jwebmp.plugins.bootstrap.options;
import com.jwebmp.core.utilities.StaticStrings;
import static com.jwebmp.core.utilities.StaticStrings.*;
/**
* Responsive embeds
*
* Allow browsers to determine video or slideshow dimensions based on the width of their containing block by creating an intrinsic ratio that will properly scale on any device.
*
* Rules are directly applied to <iframe>, <embed>, <video>, and <object> elements; optionally use an explicit descendant class .embed-responsive-item when
* you want to match
* the styling for other attributes.
*
* Pro-Tip! You don’t need to include frameborder="0" in your <iframe>s as we override that for you.
*
* @author GedMarc
* @version 1.0
* @since 31 Dec 2016
*/
public enum BSResponsiveEmbeds
implements IBSComponentOptions
{
/**
* Responsive embeds
*
* Allow browsers to determine video or slideshow dimensions based on the width of their containing block by creating an intrinsic ratio that will properly scale on any
* device.
*
* Rules are directly applied to <iframe>, <embed>, <video>, and <object> elements; optionally use an explicit descendant class .embed-responsive-item
* when you want to
* match the styling for other attributes.
*
* Pro-Tip! You don’t need to include frameborder="0" in your <iframe>s as we override that for you.
*/
embed_responsive,
/**
* Any tag other than iframe, embed, video and object
*/
embed_responsive_item;
@Override
public String toString()
{
return name().toLowerCase()
.replace(StaticStrings.CHAR_UNDERSCORE, CHAR_DASH);
}
}