Difference between revisions of "MediaWiki:Bootstrap.rythm"

From BITPlan Wiki
Jump to navigation Jump to search
Line 11: Line 11:
 
   <title>@(title)</title>
 
   <title>@(title)</title>
 
   <style>
 
   <style>
.form-group .required .control-label:after {
+
.form-group.required .control-label:after {  
  content:"*";
+
    color: #d00;
  color:red;
+
    content: "*";
 +
    position: absolute;
 +
    margin-left: 8px;
 +
    top:7px;
 
}
 
}
 
   </style>
 
   </style>

Revision as of 19:25, 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 { 
    color: #d00;
    content: "*";
    position: absolute;
    margin-left: 8px;
    top:7px;
}
  </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>
}