Plugin Directory

Changeset 1287192


Ignore:
Timestamp:
11/16/2015 04:00:30 PM (10 years ago)
Author:
giangmd93
Message:

remove bootstrap for Layout

Location:
gp-back-to-top/trunk
Files:
7 added
5 edited

Legend:

Unmodified
Added
Removed
  • gp-back-to-top/trunk/css/gp-admin.css

    r1280129 r1287192  
    1 /*
    2  * Style GP Back To Top Plugin
    3  *
    4  * @author Giang Peter
    5  */
    6 .gp-back-to-top {
    7     display: block !important;
    8     width: 30px;
    9     height: 30px;
    10     border-radius: 50%;
    11     padding: 5px;
    12     background-color: #111f1c;
    13     color: #ffffff;
    14     text-align: center;
    15     position: relative !important;
    16     bottom: inherit !important;
    17     right: inherit !important;
    18     font-size: 14px;
    19 }
    20 .gp-back-to-top span {
    21     position: absolute;
    22     top:24%;
    23     -webkit-transform: translateX(-50%);
    24        -moz-transform: translateX(-50%);
    25         -ms-transform: translateX(-50%);
    26          -o-transform: translateX(-50%);
    27             transform: translateX(-50%);
    28 }
  • gp-back-to-top/trunk/css/gp-bttp.css

    r1284178 r1287192  
    11/*
    2  * Style GP Back To Top Plugin
    3  *
    4  * @author Giang Peter
    5  */
     2Style for GP Back To Top
     3*/
     4@import url("font.css");
     5
     6.gpbttb-form {
     7    width: 360px;
     8    margin: 20px 0;
     9    padding-top: 15px;
     10    border: 1px solid #cdcdcd;
     11}
     12
    613.gp-back-to-top {
    714    display: none;
     
    1421    text-align: center;
    1522    position: fixed;
    16     bottom: 40px;
    17     right: 20px;
     23    bottom: 45px;
     24    right: 25px;
    1825    font-size: 14px;
    1926    cursor: pointer;
    20     z-index: 99999;
    2127}
    2228.gp-back-to-top span {
     
    2834         -o-transform: translateX(-50%);
    2935            transform: translateX(-50%);
     36    font-family: 'Glyphicons Halflings';
     37    line-height: 1;
     38    -webkit-font-smoothing: antialiased;
     39    -moz-osx-font-smoothing: grayscale;
    3040}
     41.gp-back-to-top span:before {
     42    content: "\e113";
     43}
  • gp-back-to-top/trunk/css/style.css

    r1280129 r1287192  
    22Style for GP Back To Top
    33*/
     4@import url("font.css");
    45
    56.gpbttb-form {
     
    3233         -o-transform: translateX(-50%);
    3334            transform: translateX(-50%);
     35    font-family: 'Glyphicons Halflings';
     36    line-height: 1;
     37    -webkit-font-smoothing: antialiased;
     38    -moz-osx-font-smoothing: grayscale;
    3439}
     40.gp-back-to-top span:before {
     41    content: "\e113";
     42}
     43
     44/* Style for FO */
     45/*------------------------------------/
     46@import url("font.css");
     47
     48.gpbttb-form {
     49    width: 360px;
     50    margin: 20px 0;
     51    padding-top: 15px;
     52    border: 1px solid #cdcdcd;
     53}
     54
     55.gp-back-to-top {
     56    display: none;
     57    width: 30px;
     58    height: 30px;
     59    border-radius: 50%;
     60    padding: 5px;
     61    background-color: #111f1c;
     62    color: #ffffff;
     63    text-align: center;
     64    position: fixed;
     65    bottom: 45px;
     66    right: 25px;
     67    font-size: 14px;
     68    cursor: pointer;
     69}
     70.gp-back-to-top span {
     71    position: absolute;
     72    top:24%;
     73    -webkit-transform: translateX(-50%);
     74       -moz-transform: translateX(-50%);
     75        -ms-transform: translateX(-50%);
     76         -o-transform: translateX(-50%);
     77            transform: translateX(-50%);
     78    font-family: 'Glyphicons Halflings';
     79    line-height: 1;
     80    -webkit-font-smoothing: antialiased;
     81    -moz-osx-font-smoothing: grayscale;
     82}
     83.gp-back-to-top span:before {
     84    content: "\e113";
     85}
     86------------------------------------------------*/
  • gp-back-to-top/trunk/gp-back-to-top.php

    r1286869 r1287192  
    6363
    6464    public function gp_bttp_enqueue_scripts() {
    65         wp_register_style( 'gp_bttb_fo_bootstrap', plugins_url( '/lib/bootstrap-3.3.4/css/bootstrap.min.css', __FILE__ ), array(), '3.3.4' );
    66         wp_enqueue_style( 'gp_bttb_fo_bootstrap' );
    6765        wp_register_style( 'gp-bttp-style', plugins_url( '/css/'.$this->fr_file.'.css', __FILE__ ), array(), self::VERSION );
    6866        wp_enqueue_style( 'gp-bttp-style' );
     
    129127            </form>
    130128            <p>
    131                 <div class="gp-back-to-top" id="gpToTop">
    132                     <span class="glyphicon glyphicon-chevron-up"></span>
    133                 </div>
     129                <div class="gp-back-to-top" id="gpToTop"><span></span></div>
    134130            </p>
    135131            <script type="text/javascript">
     
    186182                     * @author Giang Peter
    187183                     */
     184                    @import url(\"font.css\");
    188185                    .gp-back-to-top {
    189186                        display: none;
     
    210207                        -o-transform: translateX(-50%);
    211208                        transform: translateX(-50%);
     209                        font-family: 'Glyphicons Halflings';
     210                        line-height: 1;
     211                        -webkit-font-smoothing: antialiased;
     212                        -moz-osx-font-smoothing: grayscale;
     213                    }
     214                    .gp-back-to-top span:before {
     215                        content: '\\e113';
    212216                    }";
    213217
    214             $file = fopen( dirname(__FILE__) . '\css\/'.$this->fr_file.'.css', 'w') or die('File not found.');
     218            $file_fo = dirname(__FILE__) . '/css/'.$this->fr_file.'.css';
     219            $file = fopen($file_fo, 'w') or die('File not found.');
    215220            fwrite($file, $txt);
    216221            fclose($file);
    217222
    218             $file_ad = fopen( dirname(__FILE__) . '\css\/'.$this->ad_file.'.css', 'w') or die('File not found.');
     223            $file_bo = dirname(__FILE__) . '/css/'.$this->ad_file.'.css';
     224            $file_ad = fopen($file_bo, 'w') or die('File not found.');
    219225            fwrite($file_ad, $txt);
    220226            fclose($file_ad);
  • gp-back-to-top/trunk/js/gp-bttp.js

    r1280129 r1287192  
    1313(function ($) {
    1414    $(document).ready(function() {
    15         var element = '<div class="gp-back-to-top" id="gpToTop"><span class="glyphicon glyphicon-chevron-up"></span></div>';
     15        var element = '<div class="gp-back-to-top" id="gpToTop"><span></span></div>';
    1616        $('body').append(element);
    1717
Note: See TracChangeset for help on using the changeset viewer.