From 1f39191e5530ccb3297af361d1ae451d457ce7b7 Mon Sep 17 00:00:00 2001 From: Ulrich Hilger <Ulrich.Hilger@msg-systems.com> Date: Tue, 14 Feb 2017 13:01:56 +0000 Subject: [PATCH] Prototyp Liste und Kacheln vereinfacht, mehr Standard-Flexbox, weniger Bootstrap; alte Versuche verschoben --- web/proto/verworfen/index_alt.html | 142 +++++++++++++++++ web/proto/verworfen/flex-versuch-2.css | 0 web/proto/verworfen/liste3.css | 0 web/proto/verworfen/liste3.html | 0 web/proto/verworfen/liste.html | 0 web/proto/verworfen/liste2.html | 0 web/proto/verworfen/liste5.html | 0 web/proto/index.html | 174 +++++++++------------ web/proto/verworfen/flex-versuch.html | 0 web/proto/stile.css | 62 +++++++ web/proto/verworfen/flex-versuch.css | 0 web/proto/liste4.html | 67 -------- web/proto/verworfen/flex-versuch-2.html | 0 13 files changed, 271 insertions(+), 174 deletions(-) diff --git a/web/proto/index.html b/web/proto/index.html index a7a6dfe..91318a4 100644 --- a/web/proto/index.html +++ b/web/proto/index.html @@ -1,49 +1,41 @@ <!DOCTYPE html> <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>Flexbox Demo</title> + <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>Prototyp Dateiverwaltung</title> <link rel="stylesheet" type="text/css" href="/jslib/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="/jslib/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="stile.css"> - <script id="tpl-list" type="x-tmpl-mustache"> - {{#List}} - {{#List}} - <option value="{{ String }}">{{ String }}</option>' - {{/List}} - {{/List}} - </script> </head> <body> - - <!-- Menue --> - <div id="menue"> - <ul class="nav"> - <li class="nav-item dropdown"> - <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Verwaltung</a> - <div class="dropdown-menu"> - <a class="dropdown-item" href="/">WebBox</a> - <div class="dropdown-divider"></div> - <a class="dropdown-item" href="/wbx/mng">Apps</a> - <a class="dropdown-item" href="/um/ui">Benutzer</a> - </div> - </li> - <li class="nav-item dropdown"> - <a id="userMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a> - <div class="dropdown-menu"> - <a id="logout" class="dropdown-item" href="#">Abmelden</a> - </div> - </li> - </ul> - </div> - - - <!-- Inhalt --> - <div class="container-fluid" id="inhalt"> + <!-- Kopfzeile --> + <div class="nord"> - <div class="row"> - <div class="col-sm-2 col-md-2 col-lg-2 hidden-xs-down"> + <div id="menue"> <!-- Menue --> + <ul class="nav"> + <li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Verwaltung</a> + <div class="dropdown-menu"> + <a class="dropdown-item" href="/">WebBox</a> + <div class="dropdown-divider"></div> + <a class="dropdown-item" href="/wbx/mng">Apps</a> + <a class="dropdown-item" href="/um/ui">Benutzer</a> + </div> + </li> + <li class="nav-item dropdown"> + <a id="userMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a> + <div class="dropdown-menu"> + <a id="logout" class="dropdown-item" href="#">Abmelden</a> + </div> + </li> + </ul> + </div> <!-- Menue --> + + </div> + <div class="inhalt"> + <!-- westliche Seitenleiste --> + <div class="west hidden-xs-down"> <!-- linke Seitenleiste mit Links --> <nav class="nav flex-column"> <a class="nav-link active" href="#">Active</a> @@ -51,80 +43,60 @@ <a class="nav-link" href="#">Link</a> <a class="nav-link disabled" href="#">Disabled</a> </nav> - </div> - <div class="col-sm-10 col-md-10 col-lg-10"> - + </div> + <!-- zentraler Inhaltsbereich --> + <div class="zentrum"> + <div class="zentrum-bc"> <nav class="breadcrumb"> <a class="breadcrumb-item" href="#">Home</a> <a class="breadcrumb-item" href="#">Library</a> <a class="breadcrumb-item" href="#">Data</a> <span class="breadcrumb-item active">Bootstrap</span> <div class="pull-right align-middle"> - <i class="fa fa-th-list"></i> + <i class="fa fa-th-large"></i> </div> </nav> - - <div class="row"> - <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> - <figure class="figure text-center text-warning"> - <i class="fa fa-folder-o fa-3x"></i> - <figcaption class="figure-caption">A caption for the above image.</figcaption> - </figure> - </div> - <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> - <figure class="figure text-center bg-warning text-primary"> - <i class="fa fa-folder-o fa-3x"></i> - <figcaption class="figure-caption text-primary">A caption for the above image.</figcaption> - </figure> - </div> - <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> - <figure class="figure text-center text-warning"> - <i class="fa fa-folder-o fa-3x"></i> - <figcaption class="figure-caption">A caption for the above image.</figcaption> - </figure> - </div> - <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> - <figure class="figure text-center text-warning"> - <i class="fa fa-folder-o fa-3x"></i> - <figcaption class="figure-caption">A caption for the above image.</figcaption> - </figure> - </div> - <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> - <figure class="figure text-center text-warning"> - <i class="fa fa-folder-o fa-3x"></i> - <figcaption class="figure-caption">A caption for the above image.</figcaption> - </figure> - </div> - <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> - <figure class="figure text-center text-warning"> - <i class="fa fa-folder-o fa-3x"></i> - <figcaption class="figure-caption">A caption for the above image.</figcaption> - </figure> - </div> - <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> - <figure class="figure text-center text-warning"> - <i class="fa fa-folder-o fa-3x"></i> - <figcaption class="figure-caption">A caption for the above image.</figcaption> - </figure> - </div> - <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> - <figure class="figure text-center text-warning"> - <i class="fa fa-folder-o fa-3x"></i> - <figcaption class="figure-caption">A caption for the above image.</figcaption> - </figure> - </div> - <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> - <figure class="figure text-center text-warning"> - <i class="fa fa-folder-o fa-3x"></i> - <figcaption class="figure-caption">A caption for the above image.</figcaption> - </figure> - </div> - </div> - + </div> + <div class="zentrum-liste"> + <figure class="figure datei-figure text-center text-warning align-top"> + <i class="fa fa-folder fa-3x"></i> + <figcaption class="figure-caption">Kurzer Text</figcaption> + </figure> + <figure class="figure datei-figure text-center text-warning align-top"> + <i class="fa fa-folder fa-3x"></i> + <figcaption class="figure-caption">A caption for the above image.</figcaption> + </figure> + <figure class="figure datei-figure text-center text-warning align-top"> + <i class="fa fa-folder fa-3x"></i> + <figcaption class="figure-caption">Ein ganz langer Text, der dieses Element benennt.</figcaption> + </figure> + <figure class="figure datei-figure text-center text-warning align-top"> + <i class="fa fa-folder fa-3x"></i> + <figcaption class="figure-caption">Wort</figcaption> + </figure> + <figure class="figure datei-figure text-center text-warning align-top"> + <i class="fa fa-folder fa-3x"></i> + <figcaption class="figure-caption">Wort2</figcaption> + </figure> + <figure class="figure datei-figure text-center text-warning align-top"> + <i class="fa fa-folder fa-3x"></i> + <figcaption class="figure-caption">Wort3</figcaption> + </figure> </div> </div> + <!-- oestliche Seitenleiste --> + <!-- + <div class="ost"> + östliche Seitenleiste + </div> + --> </div> - + <!-- Fusszeile --> + <!-- + <div class="sued"> + Fußzeile + </div> + --> <!-- Skripte --> <script src="/jslib/jquery/jquery.min.js"></script> <script src="/jslib/bootstrap/js/bootstrap.min.js"></script> @@ -133,10 +105,8 @@ <script type="text/javascript" charset="utf-8"> //var ui; $(document).ready(function() { - fm_init(); + // init }); </script> - - <!-- Ende Body --> </body> </html> diff --git a/web/proto/liste4.html b/web/proto/liste4.html index c58c35c..201fe5f 100644 --- a/web/proto/liste4.html +++ b/web/proto/liste4.html @@ -6,72 +6,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="/jslib/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="/jslib/font-awesome/css/font-awesome.min.css"> - <style> - html { - margin: 0; - padding: 0; - height: 100%; /* Anmerkung 2 */ - } - body { - margin: 0; - padding: 0; - height: 100%; /* Anmerkung 2 */ - min-height: 0; /* Anmerkung 1 */ - display: flex; - flex-flow: column; - } - .inhalt { - display: flex; - flex-flow: row; - height: 100%; /* Anmerkung 2 */ - min-height: 0; /* Anmerkung 1 */ - } - .nord { - - } - .sued { - background-color: lightgray; - } - .west { - flex-grow: 0; - flex-shrink: 0; - flex-basis: 10em; - } - .ost { - flex-grow: 0; - flex-shrink: 0; - flex-basis: 10em; - background-color: antiquewhite; - } - .zentrum { - width: 100%; - height: 100%; - display: flex; - flex-flow: column; - } - .zentrum-bc { - } - .zentrum-liste { - width: 100%; - height: 100%; - overflow: auto; - -webkit-overflow-scrolling: touch; - } - - - - .lipsum { - color: lightgrey; - } - - /* - Anmerkungen: - 1.) min.height: 0 fuer body und inhalt ist gegen einen Bug, vgl. - http://stackoverflow.com/questions/33859811/understanding-flexbox-and-overflowauto - 2.) height 100% fuer html, body und inhalt sorgt dafuer, dass sich alles - immer ueber das gesamte Browserfenster ausdehnt. - */ - </style> + <link rel="stylesheet" type="text/css" href="stile.css"> </head> <body> <!-- Kopfzeile --> diff --git a/web/proto/stile.css b/web/proto/stile.css index c487f58..aedae23 100644 --- a/web/proto/stile.css +++ b/web/proto/stile.css @@ -1,8 +1,58 @@ -html, body { - height: 100%; -} -.file-view { - overflow: scroll; -} \ No newline at end of file + +/* Stile Listenansicht */ + +html { + margin: 0; + padding: 0; + height: 100%; /* Anmerkung 2 */ +} +body { + margin: 0; + padding: 0; + height: 100%; /* Anmerkung 2 */ + min-height: 0; /* Anmerkung 1 */ + display: flex; + flex-flow: column; +} +.inhalt { + display: flex; + flex-flow: row; + height: 100%; /* Anmerkung 2 */ + min-height: 0; /* Anmerkung 1 */ +} +.nord { + +} +.sued { + background-color: lightgray; +} +.west { + flex-grow: 0; + flex-shrink: 0; + flex-basis: 10em; +} +.ost { + flex-grow: 0; + flex-shrink: 0; + flex-basis: 10em; + background-color: antiquewhite; +} +.zentrum { + width: 100%; + height: 100%; + display: flex; + flex-flow: column; +} +.zentrum-bc { +} +.zentrum-liste { + width: 100%; + height: 100%; + overflow: auto; + -webkit-overflow-scrolling: touch; +} +.datei-figure { + width: 6em; +} diff --git a/web/proto/flex-versuch-2.css b/web/proto/verworfen/flex-versuch-2.css similarity index 100% rename from web/proto/flex-versuch-2.css rename to web/proto/verworfen/flex-versuch-2.css diff --git a/web/proto/flex-versuch-2.html b/web/proto/verworfen/flex-versuch-2.html similarity index 100% rename from web/proto/flex-versuch-2.html rename to web/proto/verworfen/flex-versuch-2.html diff --git a/web/proto/flex-versuch.css b/web/proto/verworfen/flex-versuch.css similarity index 100% rename from web/proto/flex-versuch.css rename to web/proto/verworfen/flex-versuch.css diff --git a/web/proto/flex-versuch.html b/web/proto/verworfen/flex-versuch.html similarity index 100% rename from web/proto/flex-versuch.html rename to web/proto/verworfen/flex-versuch.html diff --git a/web/proto/verworfen/index_alt.html b/web/proto/verworfen/index_alt.html new file mode 100644 index 0000000..a7a6dfe --- /dev/null +++ b/web/proto/verworfen/index_alt.html @@ -0,0 +1,142 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Prototyp Dateiverwaltung</title> + <link rel="stylesheet" type="text/css" href="/jslib/bootstrap/css/bootstrap.min.css"> + <link rel="stylesheet" type="text/css" href="/jslib/font-awesome/css/font-awesome.min.css"> + <link rel="stylesheet" type="text/css" href="stile.css"> + <script id="tpl-list" type="x-tmpl-mustache"> + {{#List}} + {{#List}} + <option value="{{ String }}">{{ String }}</option>' + {{/List}} + {{/List}} + </script> + </head> + <body> + + <!-- Menue --> + <div id="menue"> + <ul class="nav"> + <li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Verwaltung</a> + <div class="dropdown-menu"> + <a class="dropdown-item" href="/">WebBox</a> + <div class="dropdown-divider"></div> + <a class="dropdown-item" href="/wbx/mng">Apps</a> + <a class="dropdown-item" href="/um/ui">Benutzer</a> + </div> + </li> + <li class="nav-item dropdown"> + <a id="userMenu" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a> + <div class="dropdown-menu"> + <a id="logout" class="dropdown-item" href="#">Abmelden</a> + </div> + </li> + </ul> + </div> + + + <!-- Inhalt --> + <div class="container-fluid" id="inhalt"> + + <div class="row"> + <div class="col-sm-2 col-md-2 col-lg-2 hidden-xs-down"> + <!-- linke Seitenleiste mit Links --> + <nav class="nav flex-column"> + <a class="nav-link active" href="#">Active</a> + <a class="nav-link" href="#">Link</a> + <a class="nav-link" href="#">Link</a> + <a class="nav-link disabled" href="#">Disabled</a> + </nav> + </div> + <div class="col-sm-10 col-md-10 col-lg-10"> + + <nav class="breadcrumb"> + <a class="breadcrumb-item" href="#">Home</a> + <a class="breadcrumb-item" href="#">Library</a> + <a class="breadcrumb-item" href="#">Data</a> + <span class="breadcrumb-item active">Bootstrap</span> + <div class="pull-right align-middle"> + <i class="fa fa-th-list"></i> + </div> + </nav> + + <div class="row"> + <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> + <figure class="figure text-center text-warning"> + <i class="fa fa-folder-o fa-3x"></i> + <figcaption class="figure-caption">A caption for the above image.</figcaption> + </figure> + </div> + <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> + <figure class="figure text-center bg-warning text-primary"> + <i class="fa fa-folder-o fa-3x"></i> + <figcaption class="figure-caption text-primary">A caption for the above image.</figcaption> + </figure> + </div> + <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> + <figure class="figure text-center text-warning"> + <i class="fa fa-folder-o fa-3x"></i> + <figcaption class="figure-caption">A caption for the above image.</figcaption> + </figure> + </div> + <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> + <figure class="figure text-center text-warning"> + <i class="fa fa-folder-o fa-3x"></i> + <figcaption class="figure-caption">A caption for the above image.</figcaption> + </figure> + </div> + <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> + <figure class="figure text-center text-warning"> + <i class="fa fa-folder-o fa-3x"></i> + <figcaption class="figure-caption">A caption for the above image.</figcaption> + </figure> + </div> + <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> + <figure class="figure text-center text-warning"> + <i class="fa fa-folder-o fa-3x"></i> + <figcaption class="figure-caption">A caption for the above image.</figcaption> + </figure> + </div> + <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> + <figure class="figure text-center text-warning"> + <i class="fa fa-folder-o fa-3x"></i> + <figcaption class="figure-caption">A caption for the above image.</figcaption> + </figure> + </div> + <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> + <figure class="figure text-center text-warning"> + <i class="fa fa-folder-o fa-3x"></i> + <figcaption class="figure-caption">A caption for the above image.</figcaption> + </figure> + </div> + <div class="col-sm-4 col-md-3 col-lg-2 col-xl-2"> + <figure class="figure text-center text-warning"> + <i class="fa fa-folder-o fa-3x"></i> + <figcaption class="figure-caption">A caption for the above image.</figcaption> + </figure> + </div> + </div> + + </div> + </div> + </div> + + <!-- Skripte --> + <script src="/jslib/jquery/jquery.min.js"></script> + <script src="/jslib/bootstrap/js/bootstrap.min.js"></script> + <script src="/jslib/mustache/mustache.min.js"></script> + <script src="ui.js"></script> + <script type="text/javascript" charset="utf-8"> + //var ui; + $(document).ready(function() { + fm_init(); + }); + </script> + + <!-- Ende Body --> + </body> +</html> diff --git a/web/proto/liste.html b/web/proto/verworfen/liste.html similarity index 100% rename from web/proto/liste.html rename to web/proto/verworfen/liste.html diff --git a/web/proto/liste2.html b/web/proto/verworfen/liste2.html similarity index 100% rename from web/proto/liste2.html rename to web/proto/verworfen/liste2.html diff --git a/web/proto/liste3.css b/web/proto/verworfen/liste3.css similarity index 100% rename from web/proto/liste3.css rename to web/proto/verworfen/liste3.css diff --git a/web/proto/liste3.html b/web/proto/verworfen/liste3.html similarity index 100% rename from web/proto/liste3.html rename to web/proto/verworfen/liste3.html diff --git a/web/proto/liste5.html b/web/proto/verworfen/liste5.html similarity index 100% rename from web/proto/liste5.html rename to web/proto/verworfen/liste5.html -- Gitblit v1.9.3