<h1>Bootstrap frontend framework<aclass="headerlink"href="#bootstrap-frontend-framework"title="Link to this heading">¶</a></h1>
<p>Evennia’s default web page uses a framework called <aclass="reference external"href="https://getbootstrap.com/">Bootstrap</a>. This framework is in use across the internet - you’ll probably start to recognize its influence once you learn some of the common design patterns. This switch is great for web developers, perhaps like yourself, because instead of wondering about setting up different grid systems or what custom class another designer used, we have a base, a bootstrap, to work from. Bootstrap is responsive by default, and comes with some default styles that Evennia has lightly overrode to keep some of the same colors and styles you’re used to from the previous design.</p>
<p>e, a brief overview of Bootstrap follows. For more in-depth info, please
<h2>Grid system<aclass="headerlink"href="#grid-system"title="Link to this heading">¶</a></h2>
<p>Other than the basic styling Bootstrap includes, it also includes <aclass="reference external"href="https://getbootstrap.com/docs/4.0/layout/overview/">a built in layout and grid system</a>.</p>
<sectionid="the-container">
<h3>The container<aclass="headerlink"href="#the-container"title="Link to this heading">¶</a></h3>
<p>The first part of the grid system is <aclass="reference external"href="https://getbootstrap.com/docs/4.0/layout/overview/#containers">the container</a>.</p>
<p>The container is meant to hold all your page content. Bootstrap provides two types: fixed-width and
full-width. Fixed-width containers take up a certain max-width of the page - they’re useful for limiting the width on Desktop or Tablet platforms, instead of making the content span the width of the page.</p>
<!--- This content will span the whole page -->
</div>
</pre></div>
</div>
</section>
<sectionid="the-grid">
<h3>The grid<aclass="headerlink"href="#the-grid"title="Link to this heading">¶</a></h3>
<p>The second part of the layout system is <aclass="reference external"href="https://getbootstrap.com/docs/4.0/layout/grid/">the grid</a>.</p>
<p>This is the bread-and-butter of the layout of Bootstrap - it allows you to change the size of elements depending on the size of the screen, without writing any media queries. We’ll briefly go over it - to learn more, please read the docs or look at the source code for Evennia’s home page in your browser.</p>
<blockquote>
<div><p>Important! Grid elements should be in a .container or .container-fluid. This will center the
contents of your site.</p>
</div></blockquote>
<p>Bootstrap’s grid system allows you to create rows and columns by applying classes based on breakpoints. The default breakpoints are extra small, small, medium, large, and extra-large. If you’d like to know more about these breakpoints, please <aclass="reference external"href="https://getbootstrap.com/docs/4.0/layout/overview/#responsive-breakpoints">take a look at the documentation for
them.</a></p>
<p>To use the grid system, first create a container for your content, then add your rows and columns like so:</p>
<p>This layout would be 4 columns on large screens, 2 columns on medium screens, and 1 column on
anything smaller.</p>
<p>To learn more about Bootstrap’s grid, please <aclass="reference external"href="https://getbootstrap.com/docs/4.0/layout/grid/">take a look at the
docs</a>
I</p>
</section>
</section>
<sectionid="general-styling-elements">
<h2>General Styling elements<aclass="headerlink"href="#general-styling-elements"title="Link to this heading">¶</a></h2>
<p>Bootstrap provides base styles for your site. These can be customized through CSS, but the default
styles are intended to provide a consistent, clean look for sites.</p>
<sectionid="color">
<h3>Color<aclass="headerlink"href="#color"title="Link to this heading">¶</a></h3>
<p>Most elements can be styled with default colors. <aclass="reference external"href="https://getbootstrap.com/docs/4.0/utilities/colors/">Take a look at the documentation</a> to learn more about these colors</p>
<ulclass="simple">
<li><p>suffice to say, adding a class of text-* or bg-*, for instance, text-primary, sets the text color
or background color.</p></li>
</ul>
</section>
<sectionid="borders">
<h3>Borders<aclass="headerlink"href="#borders"title="Link to this heading">¶</a></h3>
<p>Simply adding a class of ‘border’ to an element adds a border to the element. For more in-depth
info, please <aclass="reference external"href="https://getbootstrap.com/docs/4.0/utilities/borders/">read the documentation on borders.</a>.</p>
<h3>Spacing<aclass="headerlink"href="#spacing"title="Link to this heading">¶</a></h3>
<p>Bootstrap provides classes to easily add responsive margin and padding. Most of the time, you might like to add margins or padding through CSS itself - however these classes are used in the default Evennia site. <aclass="reference external"href="https://getbootstrap.com/docs/4.0/utilities/spacing/">Take a look at the docs</a> to
learn more.</p>
</section>
<sectionid="buttons">
<h3>Buttons<aclass="headerlink"href="#buttons"title="Link to this heading">¶</a></h3>
<p><aclass="reference external"href="https://getbootstrap.com/docs/4.0/components/buttons/">Buttons</a> in Bootstrap are very easy to use - button styling can be added to <codeclass="docutils literal notranslate"><spanclass="pre"><button></span></code>, <codeclass="docutils literal notranslate"><spanclass="pre"><a></span></code>, and <codeclass="docutils literal notranslate"><spanclass="pre"><input></span></code> elements.</p>
<divclass="highlight-default notranslate"><divclass="highlight"><pre><span></span><a class="btn btn-primary" href="#" role="button">I'm a Button</a>
<h3>Forms<aclass="headerlink"href="#forms"title="Link to this heading">¶</a></h3>
<p><aclass="reference external"href="https://getbootstrap.com/docs/4.0/components/forms/">Forms</a> are highly customizable with Bootstrap.
For a more in-depth look at how to use forms and their styles in your own Evennia site, please read
over <aclass="reference internal"href="../Howtos/Web-Character-Generation.html"><spanclass="std std-doc">the web character gen tutorial.</span></a></p>
</section>
</section>
<sectionid="further-reading">
<h2>Further reading<aclass="headerlink"href="#further-reading"title="Link to this heading">¶</a></h2>
<p>Bootstrap also provides a huge amount of utilities, as well as styling and content elements. To learn more about them, please [read the Bootstrap docs](<aclass="reference external"href="https://getbootstrap.com/docs/4.0/getting-">https://getbootstrap.com/docs/4.0/getting-</a> started/introduction/) or read one of our other web tutorials.</p>