]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge remote-tracking branch 'origin/master' into 2.1
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 28 Aug 2016 14:15:27 +0000 (16:15 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 28 Aug 2016 14:15:27 +0000 (16:15 +0200)
1  2 
.travis.yml
app/Resources/static/themes/material/css/main.css
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
src/Wallabag/UserBundle/Resources/views/Security/login.html.twig

diff --cc .travis.yml
index 65e7e3047520236450f84b824093b53187e5feba,53cf9bb5382a29111d58eba414819de952c8477a..c343d5ae4f9020126109df2b3d118a42440e380c
@@@ -57,11 -51,10 +57,12 @@@ matrix
            group: edge
            env: DB=sqlite
          - php: 7.0
 -          env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite
 +          env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite ASSETS=nobuild
 +        - php: 7.0
 +          env: DB=sqlite ASSETS=build
      allow_failures:
          - php: hhvm-3.12
+         - php: 7.1
          - php: nightly
  
  # exclude v1 branches
index b81335eb8257275feb2ba27649f4ca979ff4cbab,0000000000000000000000000000000000000000..d3cd1244fc3887e1ec644728429d8ea065975da5
mode 100755,000000..100755
--- /dev/null
@@@ -1,662 -1,0 +1,673 @@@
 +/* ==========================================================================
 +   Sommaire
 +
 +   0 = Common
 +   1 = Nav
 +   2 = Side-nav
 +   3 = Filters slider
 +   4 = Cards
 +   5 = Article
 +   6 = Media queries
 +   7 = Font
 +   8 = Others
 +
 +   ========================================================================== */
 +
 +/* ==========================================================================
 +   0 = Common
 +   ========================================================================== */
 +
 +@font-face {
 +  font-family: icomoon;
 +  src: url("../fonts/icomoon.eot");
 +  src:
 +    url("../fonts/icomoon.eot#iefix") format("embedded-opentype"),
 +    url("../fonts/icomoon.ttf") format("truetype"),
 +    url("../fonts/icomoon.woff") format("woff"),
 +    url("../fonts/icomoon.svg#icomoon") format("svg");
 +  font-weight: normal;
 +  font-style: normal;
 +}
 +
 +@font-face {
 +  font-family: 'Material Icons';
 +  font-style: normal;
 +  font-weight: 400;
 +  src: url(../fonts/MaterialIcons-Regular.eot);
 +
 +  /* For IE6-8 */
 +  src: local("Material Icons"), local("MaterialIcons-Regular"), url(../fonts/MaterialIcons-Regular.woff2) format("woff2"), url(../fonts/MaterialIcons-Regular.woff) format("woff"), url(../fonts/MaterialIcons-Regular.ttf) format("truetype");
 +}
 +
 +.material-icons {
 +  font-family: 'Material Icons';
 +  font-weight: normal;
 +  font-style: normal;
 +  font-size: 24px;  /* Preferred icon size */
 +  width: 1em;
 +  height: 1em;
 +  display: inline-block;
 +  line-height: 1;
 +  text-transform: none;
 +  letter-spacing: normal;
 +  word-wrap: normal;
 +  white-space: nowrap;
 +  direction: ltr;
 +
 +  /* Support for all WebKit browsers. */
 +  -webkit-font-smoothing: antialiased;
 +
 +  /* Support for Safari and Chrome. */
 +  text-rendering: optimizeLegibility;
 +
 +  /* Support for Firefox. */
 +  -moz-osx-font-smoothing: grayscale;
 +
 +  /* Support for IE. */
 +  font-feature-settings: 'liga';
 +}
 +
 +[class^="icon-"],
 +[class*=" icon-"] {
 +  font-family: icomoon;
 +  speak: none;
 +  font-style: normal;
 +  font-weight: normal;
 +  font-variant: normal;
 +  text-transform: none;
 +  line-height: 1;
 +
 +  /* Better Font Rendering =========== */
 +  -webkit-font-smoothing: antialiased;
 +  -moz-osx-font-smoothing: grayscale;
 +}
 +
 +body {
 +  display: flex;
 +  min-height: 100vh;
 +  flex-direction: column;
 +  background: #f0f0f0;
 +}
 +
 +body.login main {
 +  padding: 0;
++  min-height: 100vh;
 +}
 +
 +.border-bottom {
 +  border-bottom: 1px solid #ddd;
 +}
 +
 +nav,
 +main,
 +footer {
 +  padding-left: 240px;
 +}
 +
 +main,
 +#content,
 +.valign-wrapper {
 +  height: 100%;
 +}
 +
 +#main {
 +  flex: 1 0 auto;
 +}
 +
 +.results {
 +  height: 1em;
 +  line-height: 30px;
 +}
 +
 +.results .nb-results,
 +.results .pagination {
 +  margin: 15px;
 +  margin-bottom: 0;
 +}
 +
 +.pagination {
 +  float: right;
 +}
 +
 +.pagination ul {
 +  margin: 0 !important;
 +}
 +
 +.pagination li {
 +  padding: 0;
 +}
 +
 +.pagination a {
 +  padding: 0 10px;
 +  height: 30px;
 +  display: block;
 +}
 +
 +.pagination .disabled {
 +  margin-right: 10px;
 +  margin-left: 10px;
 +}
 +
 +div.pagination ul .prev.disabled,
 +div.pagination ul .next.disabled {
 +  display: none;
 +}
 +
 +.pagination li.active span {
 +  padding: 0 10px;
 +  height: 30px;
 +  display: block;
 +  color: #fff;
 +}
 +
 +.page-footer .footer-copyright p {
 +  display: inline;
 +}
 +
 +.hidden {
 +  display: none;
 +}
 +
 +.picker__date-display {
 +  display: none;
 +}
 +
 +footer.page-footer {
 +  margin-top: 10px;
 +  padding-top: 10px;
 +}
 +
 +footer .row {
 +  margin-bottom: 10px;
 +}
 +
 +/* ==========================================================================
 +   1 = Nav
 +   ========================================================================== */
 +
 +nav input {
 +  color: #aaa;
 +}
 +
 +.nav-wrapper .button-collapse {
 +  padding: 0 15px;
 +}
 +
 +.nav-input {
 +  display: none;
 +}
 +
 +.nav-panels {
 +  overflow: hidden;
 +}
 +
 +.nav-panel-buttom li {
 +  max-height: 64px;
 +}
 +
 +.nav-panels {
 +  transition: background 0.2s ease;
 +}
 +
 +.nav-panel-add .add,
 +.nav-panel-search .search,
 +.nav-panels .close {
 +  color: #444 !important;
 +}
 +
 +.nav-panels .action {
 +  padding-left: 0.75rem;
 +  font-size: 2.1rem;
 +  white-space: nowrap;
 +}
 +
 +.nav-panels .input-field input {
 +  display: block;
 +  line-height: inherit;
 +  padding-left: 4rem !important;
 +  width: calc(100% - 8rem);
 +}
 +
 +.nav-panels .input-field input:focus {
 +  background-color: #fff;
 +  border: 0;
 +  box-shadow: none;
 +  color: #444;
 +}
 +
 +.input-field.nav-panel-add label {
 +  left: 1rem;
 +}
 +
 +.input-field.nav-panel-add .close {
 +  position: absolute;
 +  top: 0;
 +  right: 1rem;
 +  color: transparent;
 +  cursor: pointer;
 +  font-size: 2rem;
 +  transition: 0.3s color;
 +}
 +
 +#button_filters {
 +  display: none;
 +}
 +
 +#button_export {
 +  display: none;
 +}
 +
++input-field.nav-panel-add, .input-field.nav-panel-add form {
++    height: 100%;
++}
++
 +/* ==========================================================================
 +   2 = Side-nav
 +   ========================================================================== */
 +
 +.side-nav.fixed a {
 +  font-size: 13px;
 +  line-height: 44px;
 +  height: 44px;
 +}
 +
 +.side-nav .collapsible-header,
 +.side-nav.fixed .collapsible-header {
 +  height: 45px;
 +  line-height: 44px;
 +  padding: 0 20px;
 +}
 +
 +.bold > a {
 +  font-weight: bold;
 +}
 +
 +.side-nav > li.logo {
 +  line-height: 0;
 +  text-align: center;
 +}
 +
 +#main .logo a {
 +  height: 100pt;
 +}
 +
 +#main .logo img {
 +  height: 100pt;
 +  width: 100pt;
 +}
 +
 +#main .logo:hover {
 +  background: transparent;
 +}
 +
 +.side-nav li {
 +  padding: 0;
 +}
 +
 +.side-nav a {
 +  margin: 0 1rem;
 +}
 +
 +/* ==========================================================================
 + * 3 = Filters slider
 + * ========================================================================== */
 +
 +#filters button {
 +  padding: 0;
 +  width: 100%;
 +}
 +
 +.side-nav.fixed.right-aligned {
 +  right: -250px;
 +  left: auto !important;
 +  overflow-y: visible;
 +}
 +
 +#filters div.with-checkbox {
 +  height: 3rem;
 +  margin-top: 0;
 +}
 +
 +/* ==========================================================================
 +   4 = Cards
 +   ========================================================================== */
 +
 +main #content {
 +  padding: 0 0.5rem;
 +}
 +
 +main ul.row {
 +  padding: 0 0.75rem;
 +}
 +
 +.data .card .card-body {
 +  height: 22em;
 +  overflow: hidden;
 +}
 +
 +.card .card-content .card-title {
 +  line-height: 32px;
++  max-height: 64px;
++  display: block;
++}
++
++.card .card-content i.right, .card .card-reveal i.right {
++    margin-left: 0;
 +}
 +
 +.card .card-entry-labels {
 +  position: absolute;
 +  top: 10px;
 +  z-index: 90;
 +  max-width: 50%;
 +}
 +
 +.card .card-entry-labels li {
 +  margin: 10px 10px 10px auto;
 +  padding: 5px 12px 5px 16px;
 +  background-color: rgba(0, 151, 167, 0.85);
 +  border-radius: 0 3px 3px 0;
 +  color: #fff;
 +  cursor: default;
 +  max-height: 2em;
 +  overflow: hidden;
 +  text-overflow: ellipsis;
 +  white-space: nowrap;
 +}
 +
 +.card .card-entry-labels-hidden {
 +  margin-top: 5px;
 +}
 +
 +.card .card-entry-labels-hidden li {
 +  display: inline-block;
 +  background-color: rgba(0, 151, 167, 0.85);
 +  margin: 0 5px;
 +  padding: 5px 12px;
 +  border-radius: 3px;
 +  color: #fff;
 +  max-height: 2em;
 +  max-width: calc(100% - 15px);
 +  overflow: hidden;
 +  text-overflow: ellipsis;
 +  white-space: nowrap;
 +}
 +
 +.card .card-content .estimatedTime {
 +  margin-bottom: 10px;
 +}
 +
 +.card .card-action .original {
 +  line-height: 24px;
 +}
 +
 +.card .card-action ul.links {
 +  margin: 0;
 +  font-size: 24px;
 +  line-height: 24px;
 +}
 +
 +.card .card-action a {
 +  color: #fff;
 +  margin: 0;
 +}
 +
 +.card .card-action a:hover {
 +  color: #fff;
 +}
 +
 +.settings .div_tabs {
 +  padding-bottom: 15px;
 +}
 +
 +.card.sw {
 +  max-width: 370px;
 +  margin-left: auto;
 +  margin-right: auto;
 +}
 +
 +.card .card-image {
 +  height: 14em;
 +}
 +
 +.card .card-image .preview {
 +  height: 14em;
 +  background-size: cover;
 +  background-repeat: no-repeat;
 +  background-position: 50%;
 +}
 +
 +/* ==========================================================================
 +   5 = Article
 +   ========================================================================== */
 +
 +#article {
 +  font-size: 20px;
 +  margin: 0 auto;
 +  max-width: 40em;
 +}
 +
 +#article img,
 +#article figure {
 +  max-width: 100%;
 +  height: auto;
 +}
 +
 +#article > header > h1 {
 +  font-size: 2em;
 +}
 +
 +.reader-mode {
 +  width: 95px !important;
 +  transition: width 0.2s ease;
 +}
 +
 +.reader-mode:hover {
 +  width: 240px !important;
 +}
 +
 +.reader-mode .collapsible-body {
 +  height: 0;
 +  overflow: hidden;
 +}
 +
 +.reader-mode:hover .collapsible-body {
 +  height: auto;
 +}
 +
 +.reader-mode span {
 +  opacity: 0;
 +  transition: opacity 0.2s ease;
 +}
 +
 +.reader-mode:hover span {
 +  opacity: 1;
 +}
 +
 +.progress {
 +  position: fixed;
 +  top: 0;
 +  width: 100%;
 +  height: 3px;
 +  margin: 0;
 +  z-index: 9999;
 +}
 +
 +#article aside .link {
 +  color: #000;
 +  font-size: 0.8em;
 +  text-decoration: none;
 +}
 +
 +#article aside #list {
 +  float: right;
 +  margin: 0 15px 10px;
 +}
 +
 +#article aside .chip {
 +  background-color: rgba(0, 151, 167, 0.85);
 +  color: #fff;
 +  padding: 0 15px 0 10px;
 +}
 +
 +#article aside .chip i {
 +  color: #fff;
 +}
 +
 +/* ==========================================================================
 +   6 = Media queries
 +   ========================================================================== */
 +
 +@media only screen and (max-width: 992px) {
 +  header,
 +  main,
 +  footer {
 +    padding-left: 0;
 +  }
 +  nav,
 +  main,
 +  footer {
 +    padding-left: 0;
 +  }
 +  .pagination {
 +    width: auto;
 +  }
 +  .reader-mode {
 +    width: 240px !important;
 +  }
 +  .reader-mode span {
 +    opacity: 1;
 +  }
 +  .tabs {
 +    display: inline-block;
 +    height: auto;
 +  }
 +  .tab {
 +    min-width: 100%;
 +  }
 +  .indicator {
 +    display: none;
 +  }
 +  .pagination li.prev,
 +  .pagination li.next {
 +    width: auto;
 +  }
 +}
 +
 +@media only screen and (min-width: 400px) {
 +  .nav-panel-buttom {
 +    float: right;
 +  }
 +}
 +
 +@media only screen and (min-width: 993px) and (max-width: 1180px) {
 +  .row .col.l1 {
 +    width: 25%;
 +    margin-left: 0;
 +  }
 +  .row .col.l2 {
 +    width: 33.33333%;
 +    margin-left: 0;
 +  }
 +  .row .col.l3 {
 +    width: 41.66667%;
 +    margin-left: 0;
 +  }
 +  .row .col.l4 {
 +    width: 50%;
 +    margin-left: 0;
 +  }
 +  .row .col.l5 {
 +    width: 58.33333%;
 +    margin-left: 0;
 +  }
 +  .row .col.l6 {
 +    width: 66.66667%;
 +    margin-left: 0;
 +  }
 +  .row .col.l7 {
 +    width: 75%;
 +    margin-left: 0;
 +  }
 +  .row .col.l8 {
 +    width: 83.33333%;
 +    margin-left: 0;
 +  }
 +  .row .col.l9 {
 +    width: 91.66667%;
 +    margin-left: 0;
 +  }
 +  .row .col.l10 {
 +    width: 100%;
 +    margin-left: 0;
 +  }
 +}
 +
 +@media only screen and (max-width: 350px) {
 +  .nb-results {
 +    display: none;
 +  }
 +}
 +
 +/* ==========================================================================
 +   7 = Font
 +   ========================================================================== */
 +
 +.icon-google-plus2::before {
 +  content: "\ea89";
 +}
 +
 +.icon-facebook2::before {
 +  content: "\ea8d";
 +}
 +
 +.icon-twitter::before {
 +  content: "\ea91";
 +}
 +
 +.icon-apple::before {
 +  content: "\eabf";
 +}
 +
 +.icon-android::before {
 +  content: "\eac1";
 +}
 +
 +.icon-chrome::before {
 +  content: "\eae5";
 +}
 +
 +.icon-firefox::before {
 +  content: "\eae6";
 +}
 +
 +.icon-link::before {
 +    content: "\e9cb";
 +}
 +
 +footer [class^="icon-"],
 +footer [class*=" icon-"] {
 +  font-size: 2em;
 +  transition: text-shadow 0.2s ease;
 +  padding-right: 10px;
 +}
 +
 +footer [class^="icon-"]:hover,
 +footer [class*=" icon-"]:hover {
 +  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
 +}
 +
 +/* ==========================================================================
 +   8 = Others
 +   ========================================================================== */
 +
 +/* force height on non-input field in the settings page */
 +div.settings div.input-field div,
 +div.settings div.input-field ul {
 +  margin-top: 40px;
 +}
 +
 +/* but avoid to kill all file input */
 +div.settings div.file-field div {
 +  margin-top: inherit;
 +}
index a061bdc3d4ff6474624f6961c5abcff4f0b48cbe,f6941ca54a871367c0514312c4ba7176d6467b70..806a4eefe795473bb3d882c06c20d524efd9a443
  
                          <div class="card-content">
                              {% if not entry.previewPicture is null %}
 -                                <i class="card-title grey-text text-darken-4 activator mdi-navigation-more-horiz right"></i>
 +                                <i class="card-title grey-text text-darken-4 activator material-icons right">more_vert</i>
                              {% endif %}
  
-                             <span class="card-title"><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|striptags }}">{{ entry.title|striptags|raw }}</a></span>
+                             <span class="card-title dot-ellipsis dot-resize-update"><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|raw }}">{{ entry.title|striptags|raw }}</a></span>
  
                              <div class="estimatedTime grey-text">
                                  <span class="tool reading-time">
index 50134357f942a47327a10b8c146f80c3244d94ea,0573e8e569de13c7740589573fbaa7acd77721f7..6e95345ce6459ccd6281832487762edbebf93ad1
@@@ -7,7 -10,10 +7,9 @@@
  
  {% block scripts %}
      {{ parent() }}
-     <script src="{{ asset('bundles/wallabagcore/themes/material/js/material.min.js') }}"></script>
 -
+     <script src="{{ asset('bundles/wallabagcore/themes/material/js/jquery.tinydot.min.js') }}"></script>
+     <script src="{{ asset('bundles/wallabagcore/themes/material/js/materialize.min.js') }}"></script>
+     <script src="{{ asset('bundles/wallabagcore/themes/material/js/init.js') }}"></script>
  {% endblock %}
  
  {% block header %}
index 13a903ab67ca2407514e3f62cc5f6f469024d440,5835330db7fdffc00588888505b45f4f24ff8a91..938f1a31a6367da9d69e461e4bdbd710fa23cd50
      </div>
      <div class="card-action center">
          <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
 -        <a href="{{ path('fos_user_registration_register') }}" class="waves-effect waves-light grey btn"><i class="material-icons left"></i> {{ 'security.login.register'|trans }}</a>
 +        {% if registration_enabled %}
 +            <a href="{{ path('fos_user_registration_register') }}" class="waves-effect waves-light grey btn">{{ 'security.login.register'|trans }}</a>
 +        {% endif %}
          <button class="btn waves-effect waves-light" type="submit" name="send">
              {{ 'security.login.submit'|trans }}
 -            <i class="mdi-content-send right"></i>
 +            <i class="material-icons right">send</i>
          </button>
      </div>
-     <div class="center">
+     <div class="row center">
          <a href="{{ path('fos_user_resetting_request') }}">{{ 'security.login.forgot_password'|trans }}</a>
      </div>
  </form>