<h1>Bootstrap Components and Utilities<aclass="headerlink"href="#bootstrap-components-and-utilities"title="Permalink to this headline">¶</a></h1>
<p>Bootstrap provides many utilities and components you can use when customizing Evennia’s web presence. We’ll go over a few examples here that you might find useful.</p>
<blockquote>
<div><p>Please take a look at either <aclass="reference internal"href="Add-a-simple-new-web-page.html"><spanclass="doc">the basic web tutorial</span></a> or <aclass="reference internal"href="Web-Character-View-Tutorial.html"><spanclass="doc">the web character view tutorial</span></a>
to get a feel for how to add pages to Evennia’s website to test these examples.</p>
</div></blockquote>
<divclass="section"id="general-styling">
<h2>General Styling<aclass="headerlink"href="#general-styling"title="Permalink to this headline">¶</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>
<divclass="section"id="color">
<h3>Color<aclass="headerlink"href="#color"title="Permalink to this headline">¶</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 - suffice to say, adding a class of text-* or bg-*, for instance, text-primary, sets the text color or background color.</p>
</div>
<divclass="section"id="borders">
<h3>Borders<aclass="headerlink"href="#borders"title="Permalink to this headline">¶</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="Permalink to this headline">¶</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>
</div>
</div>
<hrclass="docutils"/>
<divclass="section"id="components">
<h2>Components<aclass="headerlink"href="#components"title="Permalink to this headline">¶</a></h2>
<divclass="section"id="buttons">
<h3>Buttons<aclass="headerlink"href="#buttons"title="Permalink to this headline">¶</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>
<input class="btn btn-primary" type="submit" value="Also a Button">
<input class="btn btn-primary" type="reset" value="Button as Well">
</pre></div>
</div>
</div>
<divclass="section"id="cards">
<h3>Cards<aclass="headerlink"href="#cards"title="Permalink to this headline">¶</a></h3>
<p><aclass="reference external"href="https://getbootstrap.com/docs/4.0/components/card/">Cards</a> provide a container for other elements that stands out from the rest of the page. The “Accounts”, “Recently Connected”, and “Database Stats” on the default webpage are all in cards. Cards provide quite a bit of formatting options - the following is a simple example, but read the documentation or look at the site’s source for more.</p>
<h3>Jumbotron<aclass="headerlink"href="#jumbotron"title="Permalink to this headline">¶</a></h3>
<p><aclass="reference external"href="https://getbootstrap.com/docs/4.0/components/jumbotron/">Jumbotrons</a> are useful for featuring an image or tagline for your game. They can flow with the rest of your content or take up the full width of the page - Evennia’s base site uses the former.</p>
<h3>Forms<aclass="headerlink"href="#forms"title="Permalink to this headline">¶</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="Web-Character-Generation.html"><spanclass="doc">the web character gen tutorial.</span></a></p>