Difference between revisions of "MediaWiki:Bootstrap.rythm"

From BITPlan Wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
   <title>@(title)</title>
 
   <title>@(title)</title>
 +
  <style>
 +
.form-group.required .control-label:after {
 +
  content:"*";
 +
  color:red;
 +
}
 +
  </style>
 
}
 
}
 
@// initialize bootstrap
 
@// initialize bootstrap

Revision as of 19:16, 3 November 2017

Rythm source

@// Rythm template for Boostrap initialization and header and footer
@def header(String lang,String title) {
<!doctype html>
<html lang="@(lang)">
<head>
  <!-- https://de.wikipedia.org/wiki/Bootstrap_(Framework) -->
  <meta charset="utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>@(title)</title>
  <style>
.form-group.required .control-label:after {
  content:"*";
  color:red;
}
  </style>
}
@// initialize bootstrap
@def bootstrap() {
   <!-- Einbinden des Bootstrap-Stylesheets -->
    <link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/css/bootstrap.min.css">

    <!-- optional: Einbinden der jQuery-Bibliothek -->
    <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.4.min.js"></script>

    <!-- optional: Einbinden der Bootstrap-JavaScript-Plugins -->
    <script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/bootstrap.min.js"></script>
}