Code Monkey home page Code Monkey logo

bootstrap-fullscreen-menu's Introduction

bootstrap-fullscreen-menu

A simple CSS fullscreen menu Bootstrap 3, using the bootstrap modal

#Demo:

##Requires:

  • Bootstrap (http://getbootstrap.com)
  • //maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css
  • //maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js

##Additional Features When Using

  • Font Awesome CDN (//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css)

##License:

Creative Commons License
Bootstrap Fullscreen Menu by @duanewilsonsf is licensed under a Creative Commons Attribution 4.0 International License.

##Code

###CSS CLASS

	 /* FULL SCREEN MODAL STYLES
	-------------------------------------------------- */
	.fullscreen .modal-dialog {
		margin: 0 0 0 0;
		width: 100%;
		height: 100%;
		min-height: 100%;
		padding: 0;
		color: #333;
	}

	.fullscreen .modal-content {
		height: 100%;
		min-height: 100%;
		border-radius: 0;
		color: #333;
		background: rgba(255, 255, 255, 0.97);
	}

	.fullscreen .modal-body ul {
		padding: 100px 0 0 0;
		overflow: auto;
	}

	.fullscreen .modal-body li {
		padding: 10px 0 10px 0 ;
	}

	.fullscreen .modal-body a {
		color: #333;
		font-size: 300%;
	}

	@media (max-width: 480px){
		.fullscreen .modal-body ul {
			padding: 30px 0 0 0;
			overflow: auto;
		}

		.fullscreen .modal-body li {
			padding: 4px 0 4px 0 ;
		}

		.fullscreen .modal-body a {
			color: #333;
			font-size: 200%;
			text-transform: uppercase;
			font-weight: 700;
		}
	}

###Bootstrap Menu Replacement

####navbar-header

<button type="button" class="btn btn-link navbar-toggle collapsed" data-toggle="modal" data-target="#menuModal"> ... </button>

####modal

	<!-- FULLSCREEN MODAL CODE (.fullscreen) -->
	<div class="modal fade fullscreen" id="menuModal"  tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content" style="color:#fff;">
				<div class="modal-header" style="border:0;">
						<button type="button" class="close btn btn-link" data-dismiss="modal" aria-hidden="true"><i class="fa fa-close fa-lg" style="color:#999;"></i></button>	
						<h4 class="modal-title text-center"><span class="sr-only">main navigation</span></h4>
				</div>
				<div class="modal-body text-center">
					<ul style="list-style-type:none;">
						<li><a href="#" class="big">Hello</a></li>
						<li><a href="#" class="big">A Menu Item</a></li>
						<li><a href="#" class="big">Another Item</a></li>
						<li><a href="#" class="big">This One Too!!</a></li>
						<li><a href="http://meagency.com" class="big">me.agency</a></li>
					</ul>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal-dialog -->
	</div><!-- /.fullscreen -->

bootstrap-fullscreen-menu's People

Contributors

duanewilson avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.