Browse Source

form js

master
rdrew 2 years ago
parent
commit
2734229d62
  1. 19332
      css/global-style.css
  2. 2
      css/global-style.css.map
  3. 2
      css/sass/components/_blocks.scss
  4. 14
      css/sass/components/_form.scss
  5. 7
      css/sass/components/_search-results.scss
  6. 2
      gulpfile.js
  7. 66
      package-lock.json
  8. 1
      package.json

19332
css/global-style.css

File diff suppressed because one or more lines are too long

2
css/global-style.css.map

File diff suppressed because one or more lines are too long

2
css/sass/components/_blocks.scss

@ -8,7 +8,7 @@
color: #fff; color: #fff;
margin-bottom: 0; margin-bottom: 0;
//line-height: 0; //line-height: 0;
padding: 1rem 1rem 0.6rem 1rem; padding: .5rem 1rem 0.2rem 1rem;
border-bottom: 4px solid $green; border-bottom: 4px solid $green;
} }
.field--name-body { .field--name-body {

14
css/sass/components/_form.scss

@ -2,7 +2,13 @@
* @file * @file
* Visual styles for form components. * Visual styles for form components.
*/ */
input#edit-additional-file-upload-button {
display: block;
}
input#edit-course-syllabus-upload-button {
display: block;
}
form .field-multiple-table { form .field-multiple-table {
margin: 0; margin: 0;
} }
@ -105,10 +111,10 @@ abbr.ajax-changed {
#search-block-form { #search-block-form {
display: flex; display: flex;
margin-top: 10px; margin-top: 10px;
.form-type-search { .form-type-search {
margin: 0;
input {
margin: 0; margin: 0;
input {
margin: 0;
}
} }
} }
}

7
css/sass/components/_search-results.scss

@ -3,7 +3,12 @@
* @file * @file
* Stylesheet for results generated by the Search module. * Stylesheet for results generated by the Search module.
*/ */
.node--view-mode-teaser h2 {
@extend h3;
}
li.facet-item a {
padding: 0.4em;
}
.search-results { .search-results {
list-style: none; list-style: none;
} }

2
gulpfile.js

@ -10,6 +10,7 @@ const autoprefixer = require('gulp-autoprefixer');
const sass = require('gulp-sass')(require('sass')); const sass = require('gulp-sass')(require('sass'));
const browsersync = require('browser-sync').create(); const browsersync = require('browser-sync').create();
const sourcemaps = require('gulp-sourcemaps'); const sourcemaps = require('gulp-sourcemaps');
const cleanCSS = require('gulp-clean-css');
function loadConfig() { function loadConfig() {
var ymlFile = fs.readFileSync('config.yml', 'utf8'); var ymlFile = fs.readFileSync('config.yml', 'utf8');
@ -73,6 +74,7 @@ function styles() {
}) })
.on('error', sass.logError) .on('error', sass.logError)
) )
.pipe(cleanCSS())
.pipe(sourcemaps.write('.')) .pipe(sourcemaps.write('.'))
//.pipe(gulp.dest(PATHS.Css.Dir)) //.pipe(gulp.dest(PATHS.Css.Dir))
.pipe(gulp.dest('./css')) .pipe(gulp.dest('./css'))

66
package-lock.json generated

@ -20,6 +20,7 @@
"gulp": "latest", "gulp": "latest",
"gulp-autoprefixer": "latest", "gulp-autoprefixer": "latest",
"gulp-cache": "^1.1.3", "gulp-cache": "^1.1.3",
"gulp-clean-css": "^4.3.0",
"gulp-concat": "^2.6.1", "gulp-concat": "^2.6.1",
"gulp-plumber": "latest", "gulp-plumber": "latest",
"gulp-rename": "latest", "gulp-rename": "latest",
@ -1165,6 +1166,18 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/clean-css": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.3.tgz",
"integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==",
"dev": true,
"dependencies": {
"source-map": "~0.6.0"
},
"engines": {
"node": ">= 4.0"
}
},
"node_modules/cliui": { "node_modules/cliui": {
"version": "8.0.1", "version": "8.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
@ -3148,6 +3161,27 @@
"readable-stream": "2 || 3" "readable-stream": "2 || 3"
} }
}, },
"node_modules/gulp-clean-css": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/gulp-clean-css/-/gulp-clean-css-4.3.0.tgz",
"integrity": "sha512-mGyeT3qqFXTy61j0zOIciS4MkYziF2U594t2Vs9rUnpkEHqfu6aDITMp8xOvZcvdX61Uz3y1mVERRYmjzQF5fg==",
"dev": true,
"dependencies": {
"clean-css": "4.2.3",
"plugin-error": "1.0.1",
"through2": "3.0.1",
"vinyl-sourcemaps-apply": "0.2.1"
}
},
"node_modules/gulp-clean-css/node_modules/through2": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz",
"integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==",
"dev": true,
"dependencies": {
"readable-stream": "2 || 3"
}
},
"node_modules/gulp-cli": { "node_modules/gulp-cli": {
"version": "2.3.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz", "resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz",
@ -8541,6 +8575,15 @@
} }
} }
}, },
"clean-css": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.3.tgz",
"integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==",
"dev": true,
"requires": {
"source-map": "~0.6.0"
}
},
"cliui": { "cliui": {
"version": "8.0.1", "version": "8.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
@ -10141,6 +10184,29 @@
} }
} }
}, },
"gulp-clean-css": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/gulp-clean-css/-/gulp-clean-css-4.3.0.tgz",
"integrity": "sha512-mGyeT3qqFXTy61j0zOIciS4MkYziF2U594t2Vs9rUnpkEHqfu6aDITMp8xOvZcvdX61Uz3y1mVERRYmjzQF5fg==",
"dev": true,
"requires": {
"clean-css": "4.2.3",
"plugin-error": "1.0.1",
"through2": "3.0.1",
"vinyl-sourcemaps-apply": "0.2.1"
},
"dependencies": {
"through2": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz",
"integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==",
"dev": true,
"requires": {
"readable-stream": "2 || 3"
}
}
}
},
"gulp-cli": { "gulp-cli": {
"version": "2.3.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz", "resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz",

1
package.json

@ -17,6 +17,7 @@
"gulp": "latest", "gulp": "latest",
"gulp-autoprefixer": "latest", "gulp-autoprefixer": "latest",
"gulp-cache": "^1.1.3", "gulp-cache": "^1.1.3",
"gulp-clean-css": "^4.3.0",
"gulp-concat": "^2.6.1", "gulp-concat": "^2.6.1",
"gulp-plumber": "latest", "gulp-plumber": "latest",
"gulp-rename": "latest", "gulp-rename": "latest",

Loading…
Cancel
Save